--- id: 5f356ed63c7807a4f1e6d054 title: Step 22 challengeType: 0 dashedName: step-22 --- # --description-- The goal now is to make the `div` not take up the entire width of the page. The CSS `width` property is perfect for this. Create a new type selector in the style sheet that gives your `div` element a width of `300px`. # --hints-- You should have a `div` type selector. ```js const hasDiv = new __helpers.CSSHelp(document).getStyle('div'); assert(hasDiv); ``` You should set the `width` property to `300px`. ```js const hasWidth = new __helpers.CSSHelp(document).getCSSRules().some(x => x.style.width === '300px'); assert(hasWidth); ``` Your `div` should have a width of 300px. ```js const divWidth = new __helpers.CSSHelp(document).getStyle('div')?.getPropertyValue('width'); assert(divWidth === '300px'); ``` # --seed-- ## --seed-contents-- ```html
Est. 2020