3. Style Those Divs!


#1


https://www.codecademy.com/courses/web-beginner-en-jNuXw/0/3?curriculum_id=50579fb998b470000202dc8b


Oops, try again. Do your

s have borders that are 2px solid black?


/*Add your CSS below!*/

div {
	display: inline-block;
	background-color: yellow;
	margin-left: 5px;
	height: 100px;
	width: 100px;
	border-radius: 100%;
	border: 2px;
	border: solid;	
    border-color: black;

}

What's gone wrong here??? Thanks!


#2

HI thsese lines

	border: 2px;
	border: solid;

try to put them like that

	border: 2px solid;

#3

there are two proper ways to define a border, using the border property which has 3 values:

border: 4px dashed red;

or the individual property's:

border-width: 4px;
border-style: dashed;
border-color: red;

you seem to sort of mix them together


#4

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