Cannot identify error in 25


#1

I can't find what I'm doing wrong. It keeps telling me that I did not set the border right.

https://www.codecademy.com/courses/web-beginner-en-TlhFi/4/4?curriculum_id=50579fb998b470000202dc8b#

i {
   height:100px;
   width:300px;
   border: 1px solid #4682b4;
}

#2

your css selector (i) is wrong, you need to target your image (<img>)


#3

I just set it up like this but its still saying the same thing. (Oops, try again. Did you remember to give your image a 1px solid #4682b4 border?)

img {
height:100px;
width:300px;
border: 1px solid #4682b4;
}


#4

can i see the rest of your css code and your html code? Make sure your browser zoom is set to 100%


#5

html:

<!DOCTYPE html>
<html>
	<head>
		<title>Result</title>
	</head>
	<body>
	<img src="https://secure.static.tumblr.com/d56b3d64e29b03d10cb772651530e174/d52anwc/blSn5s4ao/tumblr_static__640_v2.png"/>
	</body>
</html>

css

img {
    height:100px;
    width:300px;
    border:1px solid #4682b4;
}

#6

your <link> is missing, your stylesheet isn't opened. Add your link with the required attributes, revisit exercise/documentation if you need a syntax refresher


#7

You mean I have to add the image link to my css?


#8

no, you need a <link> so that html knows a css file is present. You could revisit css an overview - link it up for instructions on how to link the two files together


#9

Like this? Its still saying that I did not set up the border right.

<!DOCTYPE html>
<html>
	<head>
		<title>Result</title>
	</head>
	<body>
	<img src="https://secure.static.tumblr.com/d56b3d64e29b03d10cb772651530e174/d52anwc/blSn5s4ao/tumblr_static__640_v2.png"/>
	<link type="text/css" re="stylesheet" href="stylesheet.css/>
	</body>
</html>

#10

<link> is generally placed inside <head></head>, your second attribute isn't right, and you third attribute value is having only one quotation mark


#11

Got it!! Thank you so much.