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 Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

font sizes in CSS 1

Status
Not open for further replies.

gus121

Technical User
May 9, 2002
298
GB
Hi I have been given this website with a section of the bellow style sheet. I have been asked by my boss what size the fonts are on the website. Does x-small small etc.. refer to a specific pt font size. If not what is the range that the browser can interperate it as. Where can I find this information?


P {
FONT-WEIGHT: normal; FONT-SIZE: x-small; FONT-STYLE: normal; FONT-FAMILY: Verdana, Arial, Helvetica, sans-serif
}
H1 {
FONT-WEIGHT: bold; FONT-SIZE: small; COLOR: #000099; FONT-STYLE: normal; FONT-FAMILY: Verdana, Arial, Helvetica, sans-serif
}
H2 {
FONT-WEIGHT: bold; FONT-SIZE: x-small; COLOR: #000099; FONT-STYLE: normal; FONT-FAMILY: Verdana, Arial, Helvetica, sans-serif
}
LI {
FONT-WEIGHT: normal; FONT-SIZE: x-small; FONT-STYLE: normal; FONT-FAMILY: Verdana, Arial, Helvetica, sans-serif
}
H3 {
FONT-WEIGHT: normal; FONT-SIZE: xx-small; FONT-STYLE: italic; FONT-FAMILY: Verdana, Arial, Helvetica, sans-serif
}
H4 {
FONT-WEIGHT: normal; FONT-SIZE: xx-small; FONT-STYLE: normal; FONT-FAMILY: Verdana, Arial, Helvetica, sans-serif
}
H5 {
FONT-WEIGHT: lighter; FONT-SIZE: 8pt; COLOR: black; FONT-FAMILY: Verdana, Arial, helvetica
}

thanks in Advance Angus

Angus
 
Using the named font sizes opens up a whole can of worms. They might be any size, depending on what browser you're using and what machine you're running it on. There's a long article on this at:


The really nasty thing to look out for when using named sizes is that IE4&5 is one size out of step with everyone else: it will render "small" text at the size most other browsers render "medium". You can see how to work round this at


Have fun

-- Chris Hunt
Extra Connections Ltd
 
You found some good articles there Chris. I have saved those in my favriots. thanks

Angus
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top