Lesson 2. Drawing your button help!

<PLEASE USE THE FOLLOWING TEMPLATE TO HELP YOU CREATE A GREAT POST!>

<Below this line, add a link to the EXACT exercise that you are stuck at.>
This is the course that I am stuck on: https://www.codecademy.com/en/courses/web-beginner-en-UuBLw/0/2?curriculum_id=50579fb998b470000202dc8b

<In what way does your code behave incorrectly? Include ALL error messages.>
It is saying that I have set my div height to 0px instead of 50px, which I clearly have done. I will input my code for both the CSS stylesheet and the HTML index below.

```

HTML index:

About Me

We're Codecademy! We're here to help you learn to code.



	</div>
</body>

CSS stylesheet:

img {


display: block;
height: 50px;
width: 120px;
margin: auto;
border-color: #6495ED;
border-style:dashed;
border-width: 2px;
background-color: #BCD2EE;

}

p {
text-align: center;
font-family: Garamond, serif;
font-size: 18px;
}

ERROR MESSAGE:
Oops, try again. Did you remember to give your div a height of 50px? It looks like it’s 0px.

<do not remove the three backticks above>
1 Like

general css syntax:

selector {
  property: value;
  property: value;
  property: value;
}

i don’t know what you did, but the css selector for the html element <div></div> is div, and if you want to target it, create a new css selector. You can’t nest css selectors, and you can also not use html syntax inside css

get rid of your

. Then replace img with div