Stuck on border width on 12/25


#1

it says Oops, try again. Did you set your

's border to 1px wide? what am i doing wrong here is my code:
/*Add your CSS below!*/
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;
}











#2

@holycow28

Hi!

In your code, you have, close to the beginning, border-width: 1px;

It is actually doing the right thing but the people are looking for a more precise way to complete it ("My way is the only way")

So, rather than doing it that way, you need to use the border syntax instead so, you want to replace border-width: 1px;

with

border: 1px solid black;


#3

tamponsah9909 is absolute right, you only defined one of the 3 necessary values, you can also use the individual property's:

border-width: 1px;
border-style: solid;
border-color: black;

i mention this because you start with border-width, i personally prefer the use of border. One very important thing, don't mixture the individual property's with the border property!


#4

thank you i must have read the directions wrong


#5

A post was split to a new topic: Stuck on border 12/25