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

CSS: An Overview Forum

View Course » View Exercise

303 points
57d20ec692f407704d00039f_420687950
Submitted by
UnCharted4life539_551d8fd686f552f740
almost 2 years ago

7/26 [resolved] problem

My code won't work!!

selector {
    property: green;   
}

1 vote

permalink

HI Sk8Kid539,

Instead of the word selector, put the name of the actual element that you want to select.

3691 points
55df2afa95e3787b9200005e_359368177
Submitted by
Judy
almost 2 years ago

1 Comment

57d20ec692f407704d00039f_420687950 UnCharted4life539_551d8fd686f552f740 almost 2 years ago

I already finished that one, I'll remove the post.


0 votes

permalink

Try something like this...

   <!DOCTYPE html>
    <html>
        <head>
            <link type="text/css" rel="stylesheet" href="stylesheet.css"/>
            <title>Result</title>
        </head>
        <body>
            <p>You're about to style this paragraph with CSS all on your own!</p>
        </body>
    </html>

201 points
Fd49850609c39dd6aeb83e4488c10dbf?s=140&d=retro
Submitted by
NerdCommander_546d06af8c1ccca7a10058
almost 2 years ago

2 Comments

57d20ec692f407704d00039f_420687950 UnCharted4life539_551d8fd686f552f740 almost 2 years ago

That was exactly what I did. the code I posted was the stylesheet.css

Fd49850609c39dd6aeb83e4488c10dbf?s=140&d=retro NerdCommander_546d06af8c1ccca7a10058 almost 2 years ago

Oh...
Ok.


0 votes

permalink

p{
color:green
}

This is what it looks like the top line is what your selecting to change the color to green (2nd row).

642 points
5793e37558212240e90003fd_774329516
Submitted by
iiRosie1
almost 2 years ago