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

CSS: An Overview Forum

View Course » View Exercise

288 points
Cece2cad97975b67726ee093d48b5fb4?s=140&d=retro
Submitted by
lee2517_5409ab24282ae30b270030d7_del
almost 3 years ago

Why is this wrong?

I am 25/26 on size and borders.
The instructions:
On the CSS tab, give your image a border of 1px solid #4682b4.

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

When I click save and submit code it keeps saying: Oops, try again. Did you remember to give your image a 1px solid #4682b4 border?

Edit: Also for 26/26, similar problem:
Instructions:
On the CSS tab, change your link's text-decoration to none and its color to #cc0000.

what i've done:
a {
color:#cc0000;
text-decoration:none;
}

Clicking save and submit code gives me this:
Oops, try again. Did you remember to set your link's text-decoration to none?

Anyone tell me what I've done wrong?


2 votes

permalink

This is how I get down people!!

h1 {
font-family: Verdana, sans-serif;
color: #576D94;
}
p {
font-family: Garamond, serif;
font-size: 18px;
}

img {

height:100px;
width:300px;
border-style: solid;
border-color:#4682b4;
border-width:1px;
}

547 points
51eae9c57c82cac953004ce5_84803522
Submitted by
Lloyd Smith
almost 3 years ago


1 vote

permalink

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;

}
a {
color:#cc0000;
text-decoration:none

}

this works. i was having the same issue. it appears you have to put color first then text decoration with NO semicolon on the end of "none".

127 points
16f0758cb2166e95d611aaae97670198?s=140&d=retro
Submitted by
jgadzia2
almost 3 years ago


0 votes

permalink

I'm on Many Selectors, Many Properties, and I'm having a similar issue:
h1 {
font-family: Verdana;
color: #576D94;
}
p {
font-size: 18px;
color: #4A4943;
}

Why is the error saying that I haven't set it to Verdana?

201 points
Da004fb5d8b8e253e7f09514b6788877?s=140&d=retro
Submitted by
Andrew Watkins
almost 3 years ago


0 votes

permalink

I have the exactly same problem..pls help :(

352 points
540d656352f8639d7a00b4e7_254280842
Submitted by
Jarin
almost 3 years ago


0 votes

permalink

1>. Change your page zoom to 100% in your web browser.
2>. Then click submit.
I hope this helps :)

499 points
6195094af7bb17c7d7000d41e504629d?s=140&d=retro
Submitted by
abhigeek
almost 3 years ago


0 votes

permalink

Do you mind posting your HTML code? There might be something missing with the link on that end.

330 points
Afb2cda173dad4bb93e73419feb66cd7?s=140&d=retro
Submitted by
TM123
almost 3 years ago


0 votes

permalink

Same problem, here's my code. It's showing up correctly in the preview window:

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

EDIT: if it helps to figure out, I'm using Firefox.

735 points
5244d095589c2b17744600f060b5a825?s=140&d=retro
Submitted by
Joshua Powlison
almost 3 years ago

3 Comments

Afb2cda173dad4bb93e73419feb66cd7?s=140&d=retro TM123 almost 3 years ago

Joshua, you're just missing a semi-colon for the color value with h1. :-)
Add the semi-colon, the code should work afterwards.

Picture Olga Kruglova almost 3 years ago

It does not work with semi-colon! It seems like the problem is much deeper than that.

5244d095589c2b17744600f060b5a825?s=140&d=retro Joshua Powlison almost 3 years ago

Thanks for spotting that! :)
Unfortunately, Olga's right, it's still not working.


0 votes

permalink

I'm still not able to get past this lesson. I've tried multiple browsers, making sure all of them were set to 100% zoom. I've tried multiple ways of writing the CSS, including all of the suggestions here.

Is anyone else still having a problem with this lesson? Thanks ...

199 points
4ffcbe8c833127000300f4b5_407654498
Submitted by
Luke Strosnider
almost 3 years ago


0 votes

permalink

I am having a problem with this lesson still. It will not let me pass this one or the one before it.

God bless,
Caleb Jefferies

840 points
56e456a14b7f51d057000178_409756225
Submitted by
Caleb Jefferies
almost 3 years ago

1 Comment

56e456a14b7f51d057000178_409756225 Caleb Jefferies almost 3 years ago

Or after it!


0 votes

permalink

after having tried all proposals including exchanging the images, i tried this zoom 100% which isn't possible in iceweasel (mozilla). there i can only chose between smaller, biggerand normal. the latter did it finally!!

583 points
F8a19f1e6abef9b666c3514c542a6d5a?s=140&d=retro
Submitted by
hmpf
over 2 years ago