Pixels and ems

Can I use “em” in stylesheet.css
for instance


im not sure only in index html.

anoher question
link type=“text/css” rel=“stylesheet” href=“stylesheet.css”/>
i type above one but css doesnt show on screen

<!DOCTYPE html>
	    <ink type="text/css" rel="stylesheet" href="stylesheet.css"/>
		<p style="font-size: 1em">One em!</p>
		<p style="font-size: 0.5em">Half an em!</p>
		<p style="font-size: 2em">TWO EM!</p>

the reason your last paragraph won’t show, is because it is .05em, 0.1em is already small, this half that

for next time, use one of the two following options to make your code/indent visible:

select your code and press ctrl + shift + c (or cmd + shift + c if you use a mac)

if this instructions are unclear, you can also insert 3 backticks before and after your code, like so:


the backtick is located above the tab key on your keyboard

1 Like

@stetim94 is correct, 0.05em is very small and probably won’t show up on your screen. Also, you’ve misspelled link in your <link> tag.

1 Like

I missed that, nice catch @zystvan

1 Like