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

CSS: An Overview Forum

View Course » View Exercise

921 points
53f1339b8c1cccc2ec000278_993042404
Submitted by
Kevin Scrima
almost 3 years ago

CSS: An overview 5/26

I was wondering if there's a bug or something on this lesson. Why won't it accept my code?

<!DOCTYPE html>





I want to be SIZE 44 font!


2 votes

permalink

Lesson 5/26 appears to be broken. you can work around it by inserting inline css in addition to what the lesson asks for.
<!DOCTYPE html>
<html>
<head>
<style>
<link type="text/css" rel="stylesheet" href="stylesheet.css"/>
</style>
<title>Result</title>
</head>
<body>
<p style="font-size: 44px;">I want to be SIZE 44 font!</p>
</body>
</html>

313 points
539a9e6d8c1ccce8af00181a_742863381
Submitted by
Benjamin Saint Denis
almost 3 years ago

2 Comments

861e6c1da1b6d2793d0aabfd7bf67f84?s=140&d=retro Peter A Edwards almost 3 years ago

Look at , you have a " where it should not be, remove it and it will work.

5671826195e378c47d000782_659060817 stetim94 almost 3 years ago

where excactly is the addiotional "? i think the problem is that his link to stylesheet is between style tags. then adding inline style will do the trick.


0 votes

permalink

check here how to display code on the forum.

2410 points
5671826195e378c47d000782_659060817
Submitted by
stetim94
almost 3 years ago


0 votes

permalink

That solution didn't work for me using Chrome.
I opened up IE and 5/26 seemed to work fine.

274 points
53aea76680ff33887f0010e0_56562899
Submitted by
Danny
almost 3 years ago


0 votes

permalink

Hello Kevin, there's NO BUG. You're messing the things. If you you use inline style, please don't use a link. Here down i explain myself better:
(YOUR CODE)
<style>
<link type="text/css" rel="stylesheet" href="stylesheet.css"/>
</style>

(GOOD WAY, without <style>, that's enough)
<link type="text/css" rel="stylesheet" href="stylesheet.css"/>

Now your code will function.

365 points
543fc82f631fe988640020d7_382532424
Submitted by
Tobias Páez
over 2 years ago