6 replies [Last post]
sv3nrg
Offline
newbie
Last seen: 11 years 22 weeks ago
Timezone: GMT+1
Joined: 2003-03-27
Posts: 1
Points: 0

hi my name is sven and i have a problem that looks like this ....

i'm working with a css and i want to use the font-size like in html but when i use 3 it gets very small but in normal HTML when you use 3 its not that small i know in css you have to use px or pt ( i'm not sure of that) but how much px or pt is normal fontsize is there a table or something for that

tnx and greetings from holland Laughing out loud

Anonymous
Anonymous's picture
Guru

font-size???

Try setting your font size to 12pt. This should come close to what you want. HTML font sizes are totally different from points so you can't convert it directly.

Tony
Tony's picture
Offline
Moderator
Brisbane
Last seen: 7 hours 54 min ago
Brisbane
Timezone: GMT+10
Joined: 2003-03-12
Posts: 5104
Points: 2697

font-size???

Hi Sven,
You could also try out the defined constant font sizes:
xx-small; x-small; small; medium; large; xx-large;
The sizes are displayed differently in many browsers but if you use them consistently through your site, small should always be smaller then medium. Smile

dJomp
dJomp's picture
Offline
Enthusiast
York, England
Last seen: 11 years 22 weeks ago
York, England
Joined: 2003-03-23
Posts: 422
Points: 0

font-size???

Yeah I'd recommend using the size names as Tony says, that way they can be changed, if someone likes things larger etc.

It's also a good idea to have something like this at the top of your HTML:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">

(obviously whichever doctype is relevant to you). Make sure you include the .dtd reference, I had Moz/IE rendering font sizes differently until I told them which HTML I was using.

You know you're a geek when you try to shoo a fly away from the monitor with your cursor.

Anonymous
Anonymous's picture
Guru

font-size???

tnxz but if i now use the defined constant values then i have to reshape the whole site again because my task is to make it more prof. and easier to change for the people who work here when im gone they made it theirself and use all html code mixxed up like px size html size and pt size...

isnt there a kind of conversion table for fontsizes or something like that and i use more than 6 sizes of fontsize so i dont need the xx-small<--->xx-large size

but tnxz anyway

Anonymous
Anonymous's picture
Guru

font-size???

btw i also use the H1 till H6 orso tag's

dJomp
dJomp's picture
Offline
Enthusiast
York, England
Last seen: 11 years 22 weeks ago
York, England
Joined: 2003-03-23
Posts: 422
Points: 0

font-size???

Sven wrote:
i have to reshape the whole site again

Where is this site being used? If it's local, and always going to be rendered on one browser, then OK; but if it's a site that many people can use with different browsers then it sounds like there's a problem here... your site can't (shouldn't) be based around a certain screen-size / font-size etc, for accessability. Some people may need font sizes bigger etc and will have their browser set up to do this automatically, and obviously different browsers interpret it differently anway.

Maybe I've got the wrong end of the stick, but...

You know you're a geek when you try to shoo a fly away from the monitor with your cursor.