OZONE Asylum
Forums
XML - XSL - XSLT - XHTML - CSS - DOM
Css Problems
This page's ID:
10882
Search
QuickChanges
Forums
FAQ
Archives
Register
Edit Post
Who can edit a post?
The poster and administrators may edit a post. The poster can only edit it for a short while after the initial post.
Your User Name:
Your Password:
Login Options:
Remember Me On This Computer
Your Text:
Insert Slimies »
Insert UBB Code »
Close
Last Tag
|
All Tags
UBB Help
The problem is the order in which you put your style sheet... body {color: black; background-color:white; FONT-FAMILY: verdana;} table (background-color;} td.top (background-color:#3399FF;} td.nav {background-color:white;} td {background-color:#FFFFFF;} When the browser encounters <td class="top">, it goes through each thing in the style sheet to see if it matches. ("Is it a <body> tag? no. Is it a <table> tag? no. Is it a <td> tag with class="top"? yes! So I'll set the background color to #3399FF. Is it a <td> tag with class="nav"? no. Is it a <td> tag? yes! So I'll set the background color to #FFFFFF.") See the problem? Later things in the CSS override earlier things. So put the more general ones (like td) before the more specific ones (like td.top). Edit: HZR is also correct. [This message has been edited by Slime (edited 12-22-2002).]
Loading...
Options:
Enable Slimies
Enable Linkwords
« Backwards
—
Onwards »