Give your div padding of 40px on all sides

Mine in CSS: Padding: 40px;

What am I doing wrong??


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.


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


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


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