Dynadot .com transfer sale, only $10.12 with coupon code DYNA12, available while supplies last, ends October 31, 2026.

Font Sizes

SpaceshipSpaceship
Namecheap AuctionsNamecheap Auctions
SpaceshipSpaceship
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.
GoDaddyGoDaddy
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
•••
DomainEasy: white label portfolios are live. Enable yours.

We're social

Escrow.com
Spaceship
Escrowly
CryptoExchange.com
Domain Recover

NamePros updates

Parking: find your domains by pasting a list
You can now paste a list of domain names into the search box at the top of the Parking menu. Put one name on each line. Your domain list...
AIVikings
Catchy
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back