Lev. 8 Font size problem


#1


Hi everyone, I am trying to get past this exercise about the font size, and apparently the problem is not the code but the browser zoom/minimum font size. I tried both on Chrome and firefox, and I can get the error past the first line by setting the browser font's size on 10, but I still get the problem for the second paragraph, and if I change the browser's font size again, the error comes back to line 7. I also tried zooming in-out. What am I doing wrong?


The error is this one "Oops, try again. Did you set the second paragraph's font-size to 20px? It looks like it's 10px. (If you're getting a weird decimal font size, check the Hint.)"

and this is my code

<!DOCTYPE html>
<html>
	<head>
		<title>First font size change</title>
	</head>
	<body>
	<p style="font-size 10px"> Some text for you to make tiny! </p>
	<p style="font-size 20px">Some text for you to make normal size!</p>
	<p style="font-size 40px"> Some text for you to make super big!</p>
	</body>
</html>


#2

Maybe put a colon after "font-size" in all lines? like so:

<p style="font-size: 10px"> Some text for you to make tiny! </p>

#3

I just tried, no change... :frowning: thank you anyway!


#4

can you post an updated version of your code + error message?


#5

Sure! so, this is the error I get with the change suggested by desiigner:
Oops, try again. Did you set the second paragraph's font-size to 20px? It looks like it's 10px. (If you're getting a weird decimal font size, check the Hint.)
And this is the code I put with their correction:

<!DOCTYPE html>
<html>
	<head>
		<title>First font size change</title>
	</head>
	<body>
	<p style:"font-size 10px"> Some text for you to make tiny! </p>
	<p style:"font-size 20px">Some text for you to make normal size!</p>
	<p style:"font-size 40px"> Some text for you to make super big!</p>
	</body>
</html>

This instead is my previous code, which gets the same exact error:

<!DOCTYPE html>
<html>
	<head>
		<title>First font size change</title>
	</head>
	<body>
	<p style="font-size 10px"> Some text for you to make tiny! </p>
	<p style="font-size 20px">Some text for you to make normal size!</p>
	<p style="font-size 40px"> Some text for you to make super big!</p>
	</body>
</html>

#6

I told you to put colon's after the "size" like so:

<p style="font-size: 10px"> Some text for you to make tiny! </p>

#7

It worked!! I am an idiot, sorry :stuck_out_tongue: