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

CSS: An Overview Forum

View Course » View Exercise

64 points
267d9e66b6cc3f38d60fdbdb7c139b69?s=140&d=retro
Submitted by
3q.l4
about 2 years ago

26/26

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;
}
a {
text-decoration: none;
color: #cc0000;
}

This is my code for CSS. what am I doing wrong. I can't figure it out.


1 vote

permalink

Here's my code that passed the test check

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 {
text-decoration: none;
color: #cc0000;
}

478 points
7aef778964cc4c8a7a0984f6f8d8a4aa?s=140&d=retro
Submitted by
al_fredo
about 2 years ago


0 votes

permalink

It's provably your syntax, you're not consistent across all your selectors and the spacing between your property: values;

478 points
7aef778964cc4c8a7a0984f6f8d8a4aa?s=140&d=retro
Submitted by
al_fredo
about 2 years ago


0 votes

permalink

I had this problem just a few moments ago. I switched the color and text-decoration and it worked for some crazy reason.

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

put it like this and it worked.

619 points
868963a7ceed0ee6320ac6efd6a17104?s=140&d=retro
Submitted by
PirateGuy
about 2 years ago

4 Comments

2143845405c4a48f9ec7d2247526dd5e?s=140&d=retro Mathew De Souza almost 2 years ago

My html isnt working

9ce97aaa3d6f120f2aa7577e55da20b0?s=140&d=retro koranika almost 2 years ago

This isn't working for me....

868963a7ceed0ee6320ac6efd6a17104?s=140&d=retro PirateGuy almost 2 years ago

There are problems all over the place, sometimes just refreshing the page over and over again will make everything work.

7aa4a721348f656379f586c52867cf80?s=140&d=retro darkpurpleorchid almost 2 years ago

I need some help. I can't get past the the error message did you: switch your text-decoration to none
I have redone the code 6 times and have switched browers and still get the same error message. Any ideas?
Here is my work:
a{
text-decoration:none;
color:#cc0000;
}I need some help. I can't get past the the error message did you: switch your text-decoration to none
I have redone the code 6 times and have switched browers and still get the same error message. Any ideas?
Here is my work:
a{
text-decoration:none;
color:#cc0000;
}