Padding


#1

Give your div padding of 40px on all sides

Mine in CSS: Padding: 40px;

What am I doing wrong??


#2

The "padding: 40px;" is correct. Be sure you have it in your div. Make sure each line has a semi-colon, that gets me most of the time. Feel free to post the rest of your code so we can compare but I'm assuming if you got this far then the rest of your code is correct. If everything else is correct, try it in a different browser.


#3

div {
height: 50px;
width: 100px;
border: 4px solid #FF0000;
border-radius: 5px;
background-color: #308014;
margin: 20px 50px 10px 5px
padding: 40px;
}

That is how I have it


#4

Sorry my top line didnt have a semi-colon :stuck_out_tongue: Thanks @thecityofrome


#5

"Anytime anything is wrong in JavaScript, it's probably a semi-colon." -Everyone