Locking the size of the text in a html page to exact px size
Locking the size of the text in a html page to exact px size
Is it possible to lock the size of text in a browser window so the user can't change it using the text size option of the browser The same way you can lock the size of the text in the menu using px
Yup, using CSS (cascading style sheets). If you dont know what they are or how to use them, google the term and you will get alot of tutorials and examples. Then once you know how to use them, in the head of your document, you could do something like.
This would force all the text in your page to be 12px, no matter what....unless you override it somewhere. Thats why its called cascading style sheets, because things take a style from parent objects but styles closer to the object get presidence. The above example shows this...it would make sure everything is 12px big in the body (everything on the page), but the table tag overrides it so the text in your tables would be slightly smaller. This allows you to lock in different sizes for different situations.
Code: Select all
<STYLE type="text/css">
body{
font-size: 12px;
}
table{
font-size: 10px;
}
</STYLE>
Dave Hergert
Software Engineer
"Helping to make the menu better, one at a time."
Software Engineer
"Helping to make the menu better, one at a time."