Whats wrong with this line of code? I keep getting an error.
Some text for you to make tiny!
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.”
<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.
<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…..
@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
@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.