CSS Overview Assignment - Glitch?

I am on the CSS Overview lesson and one of the assignments was to set an image’s height and width to 100px and 300px, then give your image a border of 1px solid #4682b4.

I did exactly as they said:

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

and even saw the border on my image in the display. But when I tried to click next, it keeps telling me “Oops, try again. Did you remember to give your image a border?”

Any idea what’s wrong here?

Hi somtime when it says that it’s because you have one selector unclose so can you post all your CSS code?

h1{
font-family: Verdana, sans-serif;
color: #576D94;
}

p{
font-family: Garamond, serif;
font-size: 18px;
color: #4A4943;
}

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

this part too is right can you post the html code?

Sure. Here goes! Thanks.

<!DOCTYPE html>
<html>
	<head>
	    <link rel="stylesheet" type="text/css" href="stylesheet.css"> 
		<title>Result</title>
		
	</head>
	<body>
	    <h1>
	   A New Chapter
	    </h1>
	    <img src= "http://bit.ly/NnVbxt"/>	    
	    <p>
	    After graduating, I am headed to Fort Worth, TX to start working. I am beyond excited to be in the real world doing adult stuff.
	    </p>
	    
	</body>
</html>

you’re welcom…Does all your code look like that ?

<!DOCTYPE html>
<html>
    <head>
        <title>Result</title>
        <link rel="stylesheet" type="text/css" href="stylesheet.css" />
    </head>
    <body>
        <h1>
           A New Chapter
        </h1>
         <img src= "http://bit.ly/NnVbxt"/>	    
          <p>
    After graduating, I am headed to Fort Worth, TX to start working. I am beyond excited to be in the real world doing adult stuff.
         </p>
    </body>
</html>

if so you chould try to change browser or to set the zoom of your browser to default by typing
On Windows Ctrl + 0 Mac Cmd + 0

1 Like

Aha. Changing browsers works - it didn’t glitch on IE, only Chrome. Thanks!

1 Like

Thank you! i was stuck on this one for this simple issue.