Sulman Posted September 22, 2010 Share Posted September 22, 2010 Hi All, I am trying to style a table that I have no control over (I can not add or remove elements from it or restructure it etc.). Very simply it looks like so: <div class="wrapper"> <table> <tr> <td>aaaaaaaaaaaaaaaaaaaaaaaaaaa</td> <td>bbbbbbbbbbbbbbbbbbbbbbbbbbb</td> </tr> </table> </div> This results in: aaaaaaaaaaaaaaaaaaaaaaaaaaa bbbbbbbbbbbbbbbbbbbbbbbbbbb But I need bb... to drop below aa... If I set a width to the wrapper div of 50px and float the td's left in almost all browsers the tds drop to below each other: aaaaaaaaaaaaaaaaaaaaaaaaaaa bbbbbbbbbbbbbbbbbbbbbbbbbbb But this does not work in IE6 or IE7... Does anyone know a workaround to make it work in these 2 browsers? Thanks! Quote Link to comment https://forums.phpfreaks.com/topic/214101-display-td-below-td/ Share on other sites More sharing options...
Chris92 Posted September 23, 2010 Share Posted September 23, 2010 <table> <tr> <td>aaaaaaaaaaaaaaaaaaaaaaaaaaa</td> </tr> <tr> <td>bbbbbbbbbbbbbbbbbbbbbbbbbbb</td> </tr> </table> Quote Link to comment https://forums.phpfreaks.com/topic/214101-display-td-below-td/#findComment-1114484 Share on other sites More sharing options...
Sulman Posted September 23, 2010 Author Share Posted September 23, 2010 Thanks for the reply chris, but as mentioned in my original post I am unable to alter the structure of the table. Thanks. Quote Link to comment https://forums.phpfreaks.com/topic/214101-display-td-below-td/#findComment-1114507 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.