How cascading are cascading style sheets?

liunx

Guest
Hi Everyone,

I was under the impression that a page element that is contained within another page element of the same type will inherit any styles that are applied to the parent element.

E.g.: If I have a table nested within another table and the top level (page layout) table has a style applied to it then the nested table should also have the same style applied to it! Is this accurate?

If so why doesn't my html / css work when it looks like follows?

<table background="../pictures/backgrounds/background_two.jpg" class="box" width="98%">
<tr>
<table>
<tr align="center">
<td><span class="big_page_heading">Christmas Patterns</span></td>
</tr>
<tr align="center">
<td><img src=http://www.webdeveloper.com/forum/archive/index.php/"../pictures/miscellaneous/flower_banner.gif" alt="flower banner" height="71" width="470"></td>
</tr>
</table>
</tr>
<tr>
<td>
<table>
<tr>
<td>
<table>
<tr>
<td>
.....
.....

The background picture for my table is not showing at all. Any advice and / or information will be greatly appreciated.

Thanks

David:rolleyes:Not all styles are inherited. Consult
<!-- m --><a class="postlink" href="http://www.w3.org/TR/CSS21/cover.html#minitoc">http://www.w3.org/TR/CSS21/cover.html#minitoc</a><!-- m -->
for which ones are and which ones are not.

Maybe while reading the above, you learn enough to get rid of the misused <table>s in your code.
 
Back
Top