Forum Moderators: not2easy

Message Too Old, No Replies

Specifying two font sizes for a tag?

font-size: 10px/16px; why do this?

         

bondjamesbond

12:36 pm on Oct 13, 2003 (gmt 0)

10+ Year Member



Hi

I have noticed on a number of sites they use two font sizes in their css. This one site was using pt (I didn't think this was recommended for font sizing?) For the font-size under body they specified font-size: 10pt/16pt.

Now I think this has something to do with difference between the PC and the Mac but I am not 100% sure? Does anyone know why this is done and how it works?

Cheers!

benihana

12:37 pm on Oct 13, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



afaik the second number is the line-height not fontsize

ben

bondjamesbond

12:48 pm on Oct 13, 2003 (gmt 0)

10+ Year Member



Yes that woud make sense actually. When I first read your reply I thought you meant specifying the height of the indiviual letters. However after experimenting I understand you mean the gaps between the lines. For example you could you have double spaced lines etc etc.

Thanks for that benihana, I was thinking on completely the wrong track originally.

Cheers.