Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

simple problem. 1

Status
Not open for further replies.

wuzzle

Programmer
Dec 20, 2000
75
CA
Can anyone tell me why the font size isn't changing, it's just ignoring what I've got written here.

<STYLE TYPE=&quot;text/css&quot;>
body {
font-family: arial;
font-size: 20pt;
}
</style>
 
Maybe the font-family names are case sensitive? But otherwise it should work. (20pt is hu-uge!)
b2 - benbiddington@surf4nix.com
 
The common problem is that each style has a weight (invisible to us) and according to the weights each style is a mixture or &quot;cascade&quot; of all different styles. I had the same problem as you, because I had several nested tables and apparently default style for table was overriding the style for the body. For me the solution was simple, I just added table and td to the list and problem disappeared:

Code:
<STYLE TYPE=&quot;text/css&quot;>
body,table,td { 
    font-family: arial;
    font-size: 20pt;     
}
</style>

I hope this helped.
---
---
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top