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

CSS: An Overview Forum

View Course » View Exercise

117 points
B905e85153b1516de00607c53d3879ce?s=140&d=retro
Submitted by
DoomNut
over 3 years ago

WRITING COMMENTS - ADVICE PLEASE

Have done what the exercise asked, at least I think so, but an error meassge says: " Oops, try again. It looks like you didn't add a comment!" But I have? Please see my code below.

/*
    This CSS instruction turns the paragraph red!
*/

1 vote

permalink

or you can try a simple version:
/*
p {
    color:red;
}
*/

365 points
543fc82f631fe988640020d7_382532424
Submitted by
Tobias Páez
about 3 years ago


0 votes

permalink

From which exercise number is this from?

Could you give us the complete coding you typed up?

Thanks

229 points
4fe28b7700416f000300a3ca_948699743
Submitted by
Anton Tomi
over 3 years ago


0 votes

permalink

can you add the whole code?

466 points
536d06a552f863a4fd000412_873459798
Submitted by
Adi Milstein
over 3 years ago


0 votes

permalink

The exercise is CSS Overview - Color Commentary. And the instructions say: "See the CSS we've added for the p selector in stylesheet.css? Comment it out! (That is, put /* before the p in that tab and */ after the closing }." It says to do the exercise on the spreadsheet tab where this is what it shows before you start the typing. p {
color:red;
}

117 points
B905e85153b1516de00607c53d3879ce?s=140&d=retro
Submitted by
DoomNut
over 3 years ago


0 votes

permalink

Ah yes the CSS Syntax..

Well not too sure but here's my code snippet:

/* I just commented out the CSS Selector & its property-value
p {
color:red;
}*/

What the above code has done is its commented out the selector (p) and its property-value(color:red;). Since a selector,property and value are not defined in CSS file font is now back to default value (black).

Confirm please.

229 points
4fe28b7700416f000300a3ca_948699743
Submitted by
Anton Tomi
over 3 years ago