you shouldn’t have quotation marks ("
) around your border value
still does not work.
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)
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
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;
}
you are missing a semi-colon after width: 300px. Then you should be good
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;
}
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
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.
is that for stylesheet or is for index.html
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
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;
}
works fine, what does the error message say? Try a different browser as workaround
This worked for me. Thx.
I had the same problem too … it’s Firefox that’s the problem. Tried in Microsoft Edge … no problems!
Could be your browser zoom in firefox was not set to 100% (ctrl + 0 to reset zoom to 100%, or cmd + 0 for mac)
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).
does it matter? interesting… I stuck here 10 minutes, without understanding what was wrong, but after I reset zoom to 100% it is accepted))