This forum is now read-only. Please use our new forums! Go to forums

0 points
Submitted by TerryLartey
over 8 years

26/26 text decoration.

So this is my first experience of the “code-rage” I’ve been hearing of haha.. | Got to 26/26 and this message keeps popping up: “Oops, try again. Did you remember to set your link’s text-decoration to none;?”

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

Also, this is the link type in my html index:

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

So what am I doing wrong here?

Answer 56142f05e39efeb17300033f

1 vote

Permalink

instead of link {
I put a {

everything else looks good to me.

points
Submitted by cxc67
over 8 years

Answer 5614dbb193767691cf00026a

0 votes

Permalink

when you use the word link as css selector, you target this html element:

<link>

however, link is also use describe this html element:

<a></a>

and the exercise want you to target <a></a>, and the correct css selector for that is a as cxc67 points out.

points
Submitted by stetim94
over 8 years