Previous Thread
Next Thread
Print Thread
Rate Thread
#267527 01/20/2004 2:10 AM
Joined: Mar 2003
Posts: 215
Junior Member
Junior Member
Offline
Joined: Mar 2003
Posts: 215
How would I make a table within a cell (cell uses 'tdheader' class) but have the table transparent, no borders if tdheader has a border set, and keep the same font properties?

Is that possible or do I have to make a seperate class in every stylesheet?

Sponsored Links
romka #267528 01/20/2004 4:33 AM
Joined: Feb 2001
Posts: 2,268
Junior Member
Junior Member
Offline
Joined: Feb 2001
Posts: 2,268
This question should be in the CSS forum...

The problem that you run into with web design is "inheritance" and I'll explain how it works:

Think of a web page as being built of layers. Each tag adds its own layer, kind of like stacking sheets of transparency film on top of each other. The first (bottom) layer is the body tag. All of the other tags that come between the <body> and </body> tag will inherit the body tag’s attributes, unless you specify an attribute for a tag. So, let's break down a simple page. Comments follow the *...

<body class="newpage"> *The body tag has all of the properties assigned by the newpage class.

<table> *The table inherits the newpage class attributes that apply to tables, since no class or properties are specified.

<tr> *There are very few properties that apply to the tr tag. Some browsers will interpret properties assigned to the tr tag even though they normally wouldn’t apply, but it’s a very sloppy, non-standard way to write your CSS…

<td class="newrow"> *Now everything in this table cell will have the properties in the newrow class applied to it, plus any properties from the newpage class in the body tag. Any conflicts are resolved by giving the newrow class precedence over the newpage class since the newrow class is on a "higher layer".

</td>
</tr>
</table>
</body>

So, yes you would have to define a new CSS class and add it to every style sheet...


Link Copied to Clipboard
Donate Today!
Donate via PayPal

Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.

Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
Recommended Hosts
We have personally worked with and recommend the following Web Hosts:
Stable Host
bluehost
InterServer
Visit us on Facebook
Member Spotlight
Nettomo
Nettomo
Germany, Bremen
Posts: 417
Joined: November 2001
Forum Statistics
Forums63
Topics37,573
Posts293,925
Members13,849
Most Online5,166
Sep 15th, 2019
Today's Statistics
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
Top Posters
AllenAyres 21,079
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,833
Greg Hard 4,625
Top Posters(30 Days)
Top Likes Received
isaac 82
Gizmo 20
Brett 7
WebGuy 2
Morgan 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2024 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20221218)