vozzek Posted December 5, 2007 Share Posted December 5, 2007 Hi all, I'm still new to CSS, but I seem to be running into a problem. If I have a table nested within another table, can they each be assigned their own class? Or will the outer table's class override the nested table's class assignment (as seems to be happening). Sample bogus code: <table class="tbl1" width="800"> <tr> <td> <table class="tbl2" width="600"> <tr> <td>Hello</td> <tr> </table> </td> <td> <table class="tbl3" width="600"> <tr> <td>Hello</td> <tr> </table> </td> </tr> </table>[code] Rough example, but I guess it's a simple question. Thanks! [/code] Link to comment https://forums.phpfreaks.com/topic/80305-table-within-a-table/ Share on other sites More sharing options...
scottybwoy Posted December 5, 2007 Share Posted December 5, 2007 yes is will. so in your second class you need to offset the styles in the previous class. But it seems maybe you are using this for a layout. Use divs instead (search google for tableless layouts) Only use table for tabular data / grids from now on. Good luck Link to comment https://forums.phpfreaks.com/topic/80305-table-within-a-table/#findComment-407015 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.