This forum is now read-only. Please use our new forums at discuss.codecademy.com.

CSS: An Overview Forum

View Course » View Exercise

90 points
54bd96d3e39efef6ee000684_755573877
Submitted by
Joie Ning
over 3 years ago

Help on Lesson 25/26 of CSS: An Overview

How do you do the border part?
I put:
img src {
height: 100px;
width: 300px;
border: 1px solid #4682b4;

But then they said:
Oops, try again. Did you remember to give your image a 1px solid #4682b4 border?

I don't know how to do it; I'm getting confused. Somebody help ASAP.


1 vote

permalink

thanks!

90 points
54bd96d3e39efef6ee000684_755573877
Submitted by
Joie Ning
over 3 years ago


0 votes

permalink

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

img is the selector, src is just an attribute you use in html to tell where it needs to get the image.

2822 points
593d545c83696644420003b7_64554016
Submitted by
stetim94
over 3 years ago


0 votes

permalink

img {
height: 100px;
width: 300px;
border: solid 1px #4682b4;
}
Keeps saying this is still wrong?

183 points
Picture
Submitted by
Alice Wilson
over 2 years ago

2 Comments

593d545c83696644420003b7_64554016 stetim94 over 2 years ago

just as with the answer i gave to joie, i can only spot mistakes in the code provided. the mistake could be anywhere, unless you provide more (preferable all) code, i can't help you

Picture Alice Wilson over 2 years ago

ok ive posted the whole code below , thankyou


0 votes

permalink

This is the whole answer
h1 {
font-family: Verdana,sans-serif;
color: #576D94;

}
P { font-size : 18px;
font-family: Garamond, serif;
color:#4A4943
}
img {
height: 100px;
width: 300px;
border: solid 1px #4682b4;
}

183 points
Picture
Submitted by
Alice Wilson
over 2 years ago

4 Comments

593d545c83696644420003b7_64554016 stetim94 over 2 years ago

still fine, try a different browser or post your html code as well

D6c72480c31783304b8e5049a3dd0b7d?s=140&d=retro Myke Folkes about 2 years ago

I would have to agree, this lesson appears to be broken.

D6c72480c31783304b8e5049a3dd0b7d?s=140&d=retro Myke Folkes about 2 years ago

Upon hitting Control-0, it fixed the problem. Not sure how I got zoomed in, but that was definitnely the problem. I hope this helps someone else! Your code is probably correct; your zoom is off.

593d545c83696644420003b7_64554016 stetim94 about 2 years ago

ctrl 0 set zoom to 100%, ctrl + is zoom in, ctrl + is zoom out


-1 votes

permalink

It appears that you should delete the old CSS code you left from the previous lesson and only leave what is asked in lesson 25&26. i deleted what I had left at the top and it worked!

133 points
3d443855255ce441e1895c184b94efa7?s=140&d=retro
Submitted by
YannLouvet
almost 2 years ago