CSS positioning


#1

https://www.codecademy.com/en/courses/web-beginner-en-6merh/1/7?curriculum_id=50579fb998b470000202dc8b

Oops, try again. Did you set your <div>'s border to 1px wide?


div{
    border: 1px solid black;
    background-color:#cc0000;
    margin:10 5 5 50
    padding: 0 30 0 10
}

Thanks guys...


#2

HI this line

margin:10 5 5 50

you should add the ; after it

div{
    border: 1px solid black;
    background-color:#cc0000;
    margin:10 5 5 50; <-- #like that
    padding: 0 30 0 10
}

#3

The only problem I see with your code is not with the border, but with the margin and padding. You forgot to add px to all 8 numbers. You also forgot to end those lines with a ;.

Edit: the px is not necessary, but I would suggest to use them.


#4

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.