|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Is there any way to set a font size that cannot be changed by the user?
|
|
#2
|
||||
|
||||
|
<html>
<style> .yourfont{color:black;font-size:15pt;font-family:arial,verdana,serif;} </style> <body> <font class="yourfont">hello in black 15pt arial</font> </body> </html> This will be the same in any CSS browser (most are) unless the client turns off CSS in their preferences , which is unlikely. ------------------ Simon Wheeler FirePages -DHTML/PHP/MySQL |
|
#3
|
|||
|
|||
|
I could be mistaken, but I thought that in order to make a font size absolute the units had to be "px" and not "pt"?
|
|
#4
|
|||
|
|||
|
For cascading style sheets, you can set your font size with px, pt, em, ex, pc, in, mm, or cm. For tags you only use number values which represents pt.
|
|
#5
|
|||
|
|||
|
CSS's turn into **** when you start putting text in tables.
|
|
#6
|
|||
|
|||
|
JonLed, not really, it's always best to have a seperate CSS file to control most of the features for the page, so basically you just need to add a class or a ID attribute to the tags. It's always a mess and a pain in the *** if you include the style attribute to the tags. If you have a site with 300 pages and you want to change the font or background colour for all of them, just simple make one change in the CSS file.
------------------ *************** Yanik! Edmonton, AB |
|
#7
|
||||
|
||||
|
jonled
<table....etc <td class="yourclass"> etc end of turning to **** problem. (assuming your HTML code is super-valid for netscape) ------------------ Simon Wheeler FirePages -DHTML/PHP/MySQL |
|
#8
|
|||
|
|||
|
You can redefine your <TD> (or <FONT>, etc.) in your main .css to have specific font attributes, as above mentioned. That will cascade the font you want throughout your document cleanly. Then define classes like .bold which contain your desired extra characteristics, so that if you want text in a cell to be bold, use CLASS="bold" and your font face/size/etc. will be inherited from the cell itself.
|
![]() |
| Viewing: Dev Shed Forums > Web Design > HTML Programming > Font size |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|