--- id: 60a3e3396c7b40068ad6998a title: Step 32 challengeType: 0 dashedName: step-32 --- # --description-- Centra l'elemento `.three` sulla tela impostando la sua proprietà `margin` su `auto`. # --hints-- Dovresti assegnare alla proprietà `margin` il valore `auto`. ```js const marginFilter = new __helpers.CSSHelp(document).getCSSRules().filter(x => x.style.margin === 'auto'); assert(marginFilter.length === 2); ``` Il selettore `.three` dovrebbe avere una proprietà `margin` con il valore `auto`. ```js const threeMargin = new __helpers.CSSHelp(document).getStyle('.three')?.getPropertyValue('margin'); assert(threeMargin === 'auto'); ``` # --seed-- ## --seed-contents-- ```css .canvas { width: 500px; height: 600px; background-color: #4d0f00; overflow: hidden; } .frame { border: 50px solid black; width: 500px; padding: 50px; margin: 20px auto; } .one { width: 425px; height: 150px; background-color: #efb762; margin: 20px auto; } .two { width: 475px; height: 200px; background-color: #8f0401; margin: auto; } .three { width: 91%; height: 28%; background-color: #b20403; --fcc-editable-region-- --fcc-editable-region-- } ``` ```html Rothko Painting
```