What's CSS?

← Forum
181 pts

Ronald Walls

CSS:overview 25/26 ; Oops, try again! It looks like your image is 19px high instead of 100px high.

I keep getting this error even though my code on the stylesheet is correct. I am using firefox and rewrote the code several times but keep receiving this error.

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;
}

  • 243 pts

    Daniel Dreval

    1 votes

    Have you tried hitting cmd/ctrl + 0 on your keyboard? The only other thing I can recommend is adding the semicolon at the end of the 3rd line.

  • 103 pts

    betinV

    0 votes

    What i did so that i can get passed the lesson was style in what it wanted on the html file. I knew my css file was correct and I tried on different browsers like I had seen some people suggest on other issues that were similar but couldn't get it to work thats when i put it in my html it worked good. First i removed
    img{
    height: 100px;
    width: 300px;
    border: 1px solid #4682b4;
    }
    from my stylesheet and input this into my index.html

    • betinV 9 months ago
      <img style= "border:1px solid #4682b4;height:100px; width:300px;" img src="http://bit.ly/NnVbxt"</img>
    • Lyle 9 months ago
      problem solved thank you for the solution

Sign in to post to the forum.

Sign in