Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Font size in CSS

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
<style type=&quot;text/css&quot;>
body {background-color: #000000; color: #FFFFFF; font-family: arial, sans serif; font-size: 6pt;}
</style>

Hi, I am using the code above in a web page. The background colour, font colour and family all work fine but the font size doesn’t. No matter what I set it to it is always the same size. Does anyone know what I’m doing wrong?
 
instead of pt use px. pt is controlled by the browser while px isn't Ranjan
:: I earn because I learn ::
 
hmm, it works fine here. maybe you are defining the size of the font elsewhere? like in a <font> tag? posting all of your code may be useful Suceess, thats the way you spell success!
Got a question? Ask IMOZRMY!
 
It shouldn't matter whether you use pt or px either. 6 point type should look approximately the same size on any monitor (i.e. 6/72&quot;). Tracy Dryden
tracy@bydisn.com

Meddle not in the affairs of dragons,
For you are crunchy, and good with mustard. [dragon]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top