Tell us what’s happening:
Describe your issue in detail here.
I have no idea what I’m doing here. I don’t know where to place the div, how to structure the 300:px, no idea at all how to do this. I feel like I need a better explanation on what to do.
I think because you said: I don’t know where to place the div… so it wasn’t clear if you meant that literally or you meant that you didn’t know how to write a div selector.
For where to place the div, in the editor, add the new div selector after the last rule you see (that means after the h1,h2,p selector block)
Then inside the new div selector block add the new property: value; line of code with property replaced with the word width and value replaced with 300px
Hi @xUNTOUCHABLEx ,
We can put HTML elements directly in CSS sheet, then the area between open & closing element tags has applied the properties of CSS.
If you look CAREFULLY at the code you posted above you will notice the following things.
There is a
<body>
..
..
</body>
element in HTML &
body {
...
}
section in CSS.
Also check the other elements (<h1>,<h2>,<p>) in HTML & How CSS is bonded with those elements.
According to your case, <div>...</div> is an HTML element, so you have to add div { } section in CSS sheet. Between the curly brackets, you can place your attributes and values.