Links and text decoration(where am I going wrong?)


#1



https://www.codecademy.com/en/courses/web-beginner-en-TlhFi/3/3?curriculum_id=50579fb998b470000202dc8b


Oops, try again. Did you remember to set your a's text-decoration to none?


a {
    color : #cc0000;
    text-decoration : none;
}


#2

@sambitious try replacing color and text-decoration, because otherwise your code is identical to mine...

Regards,
Barry Allen


#3

Hey, I didn't quite get you... umm.. replace it with what? :sweat:

Thanks in advance,
Sam


#4

can we see your full html and css code?


#5

I meant put text-decoration on the first line and color on the second.

Regards,
Barry Allen


#6

index.html

<!DOCTYPE html>
<html>
	<head>
		<link type="text/css" rel="stylesheet" href="stylesheet.css"/>
		<title>Result</title>
	</head>
	<body>
		<p>The below link goes to Google!</p>
		<a href="http://www.google.com/">Google</a>
	</body>
</html>

stylesheet.css

a {
    color : #cc0000;
    text-decoration : none;
}

RESULT SCREEN:
The below link goes to Google!

Google


#7

your code is fine, you seems to have hit a glitch. Try a different browser


#8

Okay, thanks a lot. Will do.


#9

Hey there. I tried it in a different browser... I am still getting the same result :confused:


#10

did you post your full css code? I have much more css code in the lesson


#11

The SCT checker is being picky

instead of of:


try without space:

text-decoration: none;

*no space between text-decoration and :


#12

Hey! Tried that as well. Still the same :confused:


#13

Try exchanging the two properties. Try putting text-decoration first and color second. That's how it worked for me...


#14

FIREFOX

CHROME


#15

From the screenshot I still see the space ..

See I tested both


First screenshot I have a space like this:

text-decoration : none;

second screenshot no space:

text-decoration: none;

#16

That screenshot was before you told me to remove the space. I'll try again.


#17

Oh ... ■■■■... it worked some how!!!! Wow! Thanks!!!!!! :smiley: