0 points
Submitted by Loviem
over 7 years

Whats wrong with this line of code? I keep getting an error.

Some text for you to make tiny!

Answer 546e24f080ff338b700003ca

0 votes

Permalink

@Loviem… I don’t see any code… If you are using < signs… in the editor you have to put one prepending \ sign… otherwise the editor will interpret the text as a command… Update your post so we can see the code…plse.

points
Submitted by Leon
over 7 years

1 comments

TracyAW over 7 years

I am also having this problem, and it’s quite frustrating because I can’t proceed due to the error message.

The instructions say “On line 7, make the text size 10px.”

I entered

Some text for you to make tiny!

for line 7, and did the same for lines 8 and 9. But I keep getting an error message saying “ Oops, try again. Did you set the first paragraph’s font-size to 10px? It looks like it’s undefined. (If you’re getting a weird decimal font size, check the Hint.)”

Am I missing something? Have I entered something incorrectly? My code is exactly the same for lines 8 and 9 with the different sizes specified in the instructions, but the error message references line 7.

Answer 5470bb19282ae3dd4d002246

0 votes

Permalink

Give us some code to check what are you doing wrong.

points
Submitted by cosisb1240
over 7 years

2 comments

TracyAW over 7 years

I am also having this problem, and it’s quite frustrating because I can’t proceed due to the error message.

The instructions say “On line 7, make the text size 10px.”

I entered

Some text for you to make tiny!

for line 7, and did the same for lines 8 and 9. But I keep getting an error message saying “ Oops, try again. Did you set the first paragraph’s font-size to 10px? It looks like it’s undefined. (If you’re getting a weird decimal font size, check the Hint.)”

Am I missing something? Have I entered something incorrectly? My code is exactly the same for lines 8 and 9 with the different sizes specified in the instructions, but the error message references line 7.

Edeline White over 7 years

I don’t know. I write your code in my index.html and I didn’t get any error.

Answer 547360df8c1cccb664000286

0 votes

Permalink

I am also having this problem, and it’s quite frustrating because I can’t proceed due to the error message.

The instructions say “On line 7, make the text size 10px.”

I entered <p style= "font-size: 10px"> Some text for you to make tiny! </p> for line 7, and did the same for lines 8 and 9. But I keep getting an error message saying “ Oops, try again. Did you set the first paragraph’s font-size to 10px? It looks like it’s undefined. (If you’re getting a weird decimal font size, check the Hint.)”

Am I missing something? Have I entered something incorrectly? My code is exactly the same for lines 8 and 9 with the different sizes specified in the instructions, but the error message references line 7.

points
Submitted by TracyAW
over 7 years

2 comments

Leon over 7 years

@TracyAW, the “Oops,… “ messages comes from the ‘course-checker’ and it will bomb-out at the first occurrence of an -error- in the code… It some-times has the check using the single-quotes… so try it with writing ‘font-size: 10px’ (P.S. the double-quote syntax you used is valid).

TracyAW over 7 years

@Leon I tried your suggestion, got the same error message, refreshed the page, clicked “Save & Submit” again and finally successfully submitted the assignment. Strange. Thank you for your help!

Answer 5474141880ff33424b000b86

0 votes

Permalink

I’m having the same problem with this exercise. I tried the single quote and page refresh then hit submit but it’s still coming up with the error. Any other suggestions?

points
Submitted by Kelley
over 7 years

2 comments

Leon over 7 years

@Kelley, what error?? could give the error you are getting…

Kelley over 7 years

I got passed that error by zooming in with the browser and resubmitting. But now I can’t get past the next lesson. I’m getting the error about the font size 10px looking like 12px when wrote the code correctly.

Answer 547418b27c82ca8252000f03

0 votes

Permalink

<h1 style="color:green; font-size: 16px">Big Heading</h1>
        <p style="color:violet">A giant bear and a little duck were friends.</p>
        <p style="color:red; font-size: 10px">But the bear got hungry and ate the duck.</p>

I get an error that says the second para looks like 12px. If I zoom in like I did on the lesson before this one (9/16), I get an error on the header that says the font size is 15.83…..

points
Submitted by Kelley
over 7 years

3 comments

Kelley over 7 years

Never mind. I got it. Browser setting didn’t allow for fonts smaller than 12. Cleared that, resubmitted and it worked.

Leon over 7 years

Using your code in 9/16 in my IE11-windows 8.1 environment, gices me a pass at ‘save & submit’. What do you mean, when you write ‘if i zoom in’ are you doing this on a handy ??

Kelley over 7 years

No, safari. When I used the zoom in function in the browser. But I fixed the problem. The browser had a preference setting not allowing fonts smaller than 12px to be used. So, so regardless of the code I was typing the browser settings weren’t allowing it. Once I removed that setting, the error went away and it passed at save & submit.

Answer 54772e0c282ae300c5002c26

0 votes

Permalink

He I am using chrome. and im having this error:

Oops, try again. It looks like your header’s font-size is 15.5555562973022px instead of 16px.

how do i fix this?

points
Submitted by Tiffany de Klerk
over 7 years

1 comments

Leon over 7 years

@Tiffany de Klerk, finally, from another user:: I’m using Chrome. You have to enter the ‘Settings’ => ‘Advanced settings’ (in the very bottom) and to chose 100% in the Page scale (in my browser it was 125%).

Answer 547748859c4e9d8235003b84

0 votes

Permalink

@Tiffany de Klerk,

It seems that you have a setting in your Browser which will change the size to a preferred font-size setting https://support.google.com/chrome/answer/95416?hl=en-GB Look at “Default fonts and encodings”

In this forum a couple of people had this problem using Safari fontsize NOT recognised, by browser http://www.codecademy.com/forum_questions/5474960c7c82ca059e002793#comment-54752ce580ff3300040012cc Color not recognized by browser http://www.codecademy.com/forum_questions/5476556552f863df690009b7#comment-54767bb57c82ca5615000ff6 http://www.codecademy.com/forum_questions/5474960c7c82ca059e002793#comment-54752ce580ff3300040012cc

points
Submitted by Leon
over 7 years

Answer 547d8c5180ff3308c0001b8a

0 votes

Permalink

Hi thank you for directing me to the setting page however I still don’t know what to change the setting to…? Which setting must i pick?

points
Submitted by Tiffany de Klerk
over 7 years

1 comments

Leon over 7 years

@Tiffany de Klerk, if you don’t want to manipulate your Browser settings i would suggest you pick one of the ‘hacks’ to get the section-passed… or open a Question with the header ‘Chrome browser changing font-size !!’ and asking which settings should i change… and hopefully a Chrome-user will respond…

Answer 547dbb6b9c4e9d254e0022c9

0 votes

Permalink

@Tiffany de Klerk, Here is a codecademy-link: http://www.codecademy.com/forum_questions/515330ecbefb3fca0f0016a1

Here if you want to experiment with your Chrome Browser I have no Chrome-Browser…. But in one of these Chrome menues you must have the ability to disable the Browser to do adjustments to the Font and the Size..

Change text, image and video sizes (zoom)

How to set page zoom for all webpages

You can adjust the size of everything on the webpages you visit, including text, images and videos. 1.Click the Chrome menu Chrome menu on the browser toolbar 2.Select Settings. 3.Click Show advanced settings. 4.In the “Web Content” section, use the “Page zoom” drop-down menu to adjust the zoom.

How to set zoom on your current page

Use the zoom options in the Chrome menu to make everything on a webpage larger or smaller. 1.Click the Chrome menu Chrome menu on the browser toolbar. 2.Find the “Zoom” section in the menu and choose one of the following options: ◦Click increase zoom to make everything on the page larger. You can also use the keyboard shortcuts Ctrl and + (Windows, Linux and Chrome OS) and ⌘ and + (Mac). ◦Click decrease zoom to make everything smaller. You can also use the keyboard shortcuts Ctrl and - (Windows, Linux and Chrome OS) and ⌘ and - (Mac). ◦To go into full-screen mode, click . You can also use the keyboard shortcuts F11 (Windows and Linux) and ⌘-Shift-F (Mac). If you’re using Chrome OS, you can also press full-screen at the top of your keyboard.

How to set the font size for all webpages

You can adjust the size of text on webpages. 1.Click the Chrome menu Chrome menu on the browser toolbar. 2.Select Settings. 3.Click Show advanced settings. 4.In the “Web Content” section, use the “Font size” drop-down menu to make adjustments.

Some websites prevent the browser from changing just text size. For those sites, Chrome won’t be able to adjust the font size.

points
Submitted by Leon
over 7 years

1 comments

Leon over 7 years

Answer 54cb5bea51b88793b30010f5

0 votes

Permalink

bob

points
Submitted by Dylan OWEN
over 7 years

Answer 54cb5c5451b88791b000115b

0 votes

Permalink

strong textgoatstrong text

points
Submitted by Dylan OWEN
over 7 years