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] Quote Link to comment 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 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.