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
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.
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.
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.
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
font-size???
btw i also use the H1 till H6 orso tag's
font-size???
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...