|
|
|||||||||
|
|||||||||
|
|||||||||
| |
||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
CSS font-size
What kind of suffixes, %, pt, em, cm px..so on, should we use in CSS to make the font larger and smaller when users increase or decrease the text size?
I use: FONT-SIZE: 100%, when I increase/descrease the text size in the browser, it doesn't change the font size at all. Thanks. |
|
#2
|
||||
|
||||
|
That should work. Post your code and confirm which browser/version you are testing in
__________________
selwonk If I've posted some code above, you might think it looks a bit simplistic. It might be. I'd rather people tried the next step themselves rather than getting a full solution on a plate. That way they learn more! |
|
#3
|
||||
|
||||
|
This works fine in IE6:
Code:
<html>
<head>
<title>%age font size test</title>
<style>
body {
font-size: 100%;
}
</style>
</head>
<body>
The quick brown fox jumps over the lazy dog
</body>
</html>
|
|
#4
|
|||
|
|||
|
Thanks.
|
![]() |
| Viewing: ASP Free Forums > Programming > HTML, JavaScript And CSS Help > CSS font-size |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|