SOLVED - Border 1px wide - Can't find the issue in my code


#1

I'm stuck with the review lesson (12) in chapter 11 (CSS positioning) and I really can't find the error in my code. The error message says the following:

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

Here it goes with my code:

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

Just for your information: my screen size is correct (100%) and I double checked the size with the recommended command cmd+0 for my macbook.

Thx a lot for your help.
Best, Fabian


#2

Could you paste in all of your css code


#3

Hi there

thanks for your fast reply. That's actually all the code I had to do for this lesson (otherwise I'm really missing something). Here it goes with the description of the lesson:

Give that div a border of 1px solid black.
Give it a background color of #CC0000.
Set its top margin to 10px, its right margin to 5px, its bottom margin to 5px, and its left margin to 50px.
Set its top padding to 0px, its right padding to 30px, its bottom padding to 0px, and its left padding to 10px.


#4

Hey you are missing the solid

border: 1px solid black;