Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

CSS CSS Foundations Text, Fonts, and Lists Text Properties

Vladimir Miletic
Vladimir Miletic
6,201 Points

Remove the text decoration from the link.

Please, I need a help with this question?

index.html
<!DOCTYPE html>
<html>
<head>
    <title>Text Properties</title>
    <link rel="stylesheet" href="page.css">
    <link rel="stylesheet" href="style.css" />
</head>
<body>
    <h1>The quick brown fox jumps over the lazy dog</h1>
    <p>
        Pellentesque sem augue, auctor quis dictum et, interdum nec felis. Suspendisse faucibus viverra enim, vitae facilisis mi euismod id. Morbi ac erat mauris, a semper ligula. Etiam semper. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
        <a href="#">Aliquam vel metus sit amet nulla et dolor</a>
    </p>
</body>
</html> 
style.css
/* Complete the challenge by writing CSS below */
h1{
text-transform: capitalize;
}
p {
text-indent: 50px;
}
p{
line-height: 1.5em;
}
a:hover {
text-decoration: remove;
}

4 Answers

Henry Goh
Henry Goh
20,201 Points

Hi Vladimir,
The correct statement is text-decoration: none;

Vladimir Miletic
Vladimir Miletic
6,201 Points

Hi Henry, I am sorry but this code not working??

Henry Goh
Henry Goh
20,201 Points

Is this some sort of code challenge? What is the full question?

Vladimir Miletic
Vladimir Miletic
6,201 Points

this is the full question: Remove the text decoration from the link.

Henry Goh
Henry Goh
20,201 Points

Have you tried just removing it?

Henry Goh
Henry Goh
20,201 Points

Possible solutions are just leave it blank
a:hover {}

Or another alternative is

a
{
    text-decoration: none;
}