CSS Positioning - Review


#1

div {
border-width: 1px;
background-color: #CC0000;
margin-top: 10px;
margin-right: 5px;
margin-bottom: 5px;
margin-left: 50px;
padding-top: 0px;
padding-right: 30px;
padding-bottom: 0px;
padding-left: 10px;
}

Anyone know why my code isn't working?


#2

because you have two options when using border, using the border property which has 3 values, or the individual property's (border-width, border-style and border-color), you only did border-width


#3

Thanks for the quick response, it comes up with the error message
"Did you set your

's border to 1px wide? "

#5

i know, but without border-style and border-color the border is is indeed not 1px, also make sure your browser zoom is 100%


#6

div {
border-width: 1px;
border-style: solid;
border-color: green;
background-color: #CC0000;
margin-top: 10px;
margin-right: 5px;
margin-bottom: 5px;
margin-left: 50px;
padding-top: 0px;
padding-right: 30px;
padding-bottom: 0px;
padding-left: 10px;
}
This is my code now and it's still coming up with the same error message :frowning:


#7

it shouldn't, sure your browserzoom is 100%? The border-color should be black


#9

then i would say, you hit a glitch. Try a different browser as work around


#11

Did you try my suggestion? If you did you should have passed. Can i see your css code + error message and link to stylesheet? A tiny mistake is easily made


#13

you border color is green but it needs to be black