I think my css makes sense though it looks weird


#1

In 3.Style those divs!,
below is what I typed and It's incorrect.
I see others put the height and width in the html, but I feel my css quite makes sense.
div is not like p that i need to type in texts, right? Or is it because I didn't use class or id..?
so why can't it work?:confused:

<!DOCTYPE html>
<html>
	<head>
		<link type="text/css" rel="stylesheet" href="stylesheet.css"/>
		<title>My Social Network</title>
	</head>
	<body>
		<div></div>
		<div></div>
		<div></div>
	</body>
</html>

and for css,

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

#3

you forgot a colon after border:

border: // : is missing in your case

#4

my mistake...I can't believe I didn't detect that myself :sweat:
so besides that, my coding is fine, right?


#5

the easier the mistake the more difficult it might prove to find them. Yes, apart from that it is fine, you should be able to pass as well


#6

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