NameSilo

Font Sizes

Spaceship Spaceship
Watch

beaver6813

Established Member
Impact
16
Hey,

I'm just curious as to how i should code my font-sizes in CSS, using:

10em or whatever OR to just use 10px, which is more accessible and what is the best way to code this? I just wanna know how to make my CSS even better :D
 
0
•••
The views expressed on this page by users and staff are their own, not those of NamePros.
.US domains.US domains
I used to use em, until I noticed it was relative:

Code:
<div style="font-size:10em">
Text is bigger in here
<span style="font-size:10em">than in here</span>
</div>

Or at least, it's relative in Opera. So now I always use px sizes.
 
0
•••
Right, so i should stay with px :) I noticed with em you can't change the font size :-/ Well as far as i can tell anyways, anyone else got any other opinions?
 
0
•••
0
•••

We're social

Unstoppable Domains
Domain Recover
DomainEasy — Zero Commission
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back