Question 25 Gives error code


#1


Why is it not working?


#2

you shouldn't have quotation marks (") around your border value


#3

still does not work.


#4

can you copy paste your css code to the forum?

Also, make sure your browser zoom is set to 100% (ctrl + 0 or cmd + 0 for mac)


#5


#6

why the image? then i can't run the code, anyway, attributes are separated by spaces not semi-colons:

<link type="text/css" rel="stylesheet" href="stylesheet.css" />

can i see your css again? Please no images


#7

h1 { font-family:Verdana,sans-serif;
color:#576D94;
}
p {
font-size:18px;
color:#4A4943;
font-family:Garamond,serif;
}
img {
height:100px;
width:300px
border: 1px solid #4682b4;
}


#8

you are missing a semi-colon after width: 300px. Then you should be good


#9

I am having the same issue.

here is my css code
h1 {
font-family: Verdana, sans-serif;
color: #576d94;
}
p {
font-size:18px;
color: #4A4943;
font-family: Garamond, serif;
}

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


#10

make sure your browser zoom is set to 100% (ctrl + 0), and just like tdreynolds, make sure you link to stylesheet is correct, if you want me to check it, post your html code


#11

Thanks, stetim94. I was having the same issue--code was correct, but the error message popped up--and setting my browser zoom to 100% fixed the error.


#12

is that for stylesheet or is for index.html


#13

css and html have such different syntax, i hope you can tell them apart. <link> and link to stylesheet (which is the same thing), is html


#16

same problem, tried resetting zoom without success here is my html and css codes:

	<link type="text/css" rel="stylesheet" href="stylesheet.css"/>

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

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

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


#17

works fine, what does the error message say? Try a different browser as workaround


#18

This worked for me. Thx.


#19

I had the same problem too ... it's Firefox that's the problem. Tried in Microsoft Edge ... no problems!


#20

Could be your browser zoom in firefox was not set to 100% (ctrl + 0 to reset zoom to 100%, or cmd + 0 for mac)


#21

I had a such problem. I had check several times the css constructions and also several times retype it in different forms.
But solve was turned up is very simple - open this lesson (and code) in other browser (Chrome instead Firefox).


#22

does it matter? interesting.... I stuck here 10 minutes, without understanding what was wrong, but after I reset zoom to 100% it is accepted))