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

CSS: An Overview Forum

View Course » View Exercise

142 points
52d155aa548c3536a100385d_316097170
Submitted by
Elsa :)
over 3 years ago

how do i complete 7/26 on CSS: An Overview?

I need help on CSS: An Overview Forum CSS Syntax 2.1 Syntax for the wintax.
I must not be approaching it correctly.


6 votes

permalink

This would be what you code on the CSS file:

p {
    color:green;
}

Also make sure your have a link to your CSS file on te HTML file head section:

<head>
        <link type="text/css" rel="stylesheet" href="stylesheet.css"/>
        <title>Result</title>
    </head>

2946 points
5533b41186f55278520000c6_295543857
Submitted by
tony de araujo
over 3 years ago

1 Comment

0c15abaea72b095320e60fca8ad35f1a?s=140&d=retro Ric Andrews over 3 years ago

Thank u so much


1 vote

permalink

I'm also having the same problem with this.

I've done exactly as you suggested but keep getting the following message:

"Oops, try again. It looks like your paragraph isn't green! Check the Hint if you're stuck".

Can you help me please?

1873 points
52934315f10c602c05001c9c_882382332
Submitted by
Dave Mac
over 3 years ago

1 Comment

5533b41186f55278520000c6_295543857 tony de araujo over 3 years ago

Hi Dave, below there is a text box labeled Add an answer. If you want me to look into your code, paste the whole HTML and CSS in there. Don't worry if it does not display, i will fix that part when I return.


1 vote

permalink

Hi Tony,
Thanks for your kind offer of help, but I've just worked out what I was missing. In the HTML I was writing href="stylesheet.css" instead of actually putting the webpage address inside the " ".

 Regards,
 Dave.

1873 points
52934315f10c602c05001c9c_882382332
Submitted by
Dave Mac
over 3 years ago

1 Comment

5533b41186f55278520000c6_295543857 tony de araujo over 3 years ago

Great! Glad to know everything worked out for you. Thanks for getting back t me.


0 votes

permalink

i did applied the same coding but color didn't change to green and for the next exercise the font-size and font-family changed.Can u tell what could be done.
This is my coding and it is link to stylesheet.css in html
p{
color:green;
font-family:Garamond;
font-size:24px;
}

354 points
A581db446c636d07fa4d42043a0fc9d8?s=140&d=retro
Submitted by
Anshuman S Rathore
about 3 years ago

1 Comment

5533b41186f55278520000c6_295543857 tony de araujo about 3 years ago

What is the lesson number?