asmith Posted May 2, 2008 Share Posted May 2, 2008 hey guys this is a simple table : <table border="1" width="500"> <tr> <td width="100" height="700">a</td><td width="400" height="500">b</td> </tr> <tr> <td height="300">c</td><td height="500">d</td> </tr> </table> it containing 4 TD. each 2 in one row. is it possible i had the 2 tds next o each other with different heights? (like the uploaded image) [attachment deleted by admin] Link to comment https://forums.phpfreaks.com/topic/103836-table-diff-height/ Share on other sites More sharing options...
ToonMariner Posted May 2, 2008 Share Posted May 2, 2008 you can't do that - you will need 3 rows and use row span like so... <table border="1" width="500"> <tr> <td width="100" height="500">a</td> <td rowspan="2" width="400" height="700">b</td> </tr> <tr> <td rowspan="2" height="700">c</td> </tr> <tr> <td height="500">d</td> </tr> </table> which is why we don't use tables for layout... much easier to achieve with divs and css... Link to comment https://forums.phpfreaks.com/topic/103836-table-diff-height/#findComment-531560 Share on other sites More sharing options...
asmith Posted May 2, 2008 Author Share Posted May 2, 2008 the only reaso i always do with tables is the problem some browsers is not ok with css . if i do the whole thing with css, it is ok with most ? can you please who me a little example of it with css? Link to comment https://forums.phpfreaks.com/topic/103836-table-diff-height/#findComment-531566 Share on other sites More sharing options...
asmith Posted May 2, 2008 Author Share Posted May 2, 2008 the only reaso i always do with tables is the problem some browsers is not ok with css . if i do the whole thing with css, it is ok with most ? can you please give me an example of it with css? Link to comment https://forums.phpfreaks.com/topic/103836-table-diff-height/#findComment-531568 Share on other sites More sharing options...
ToonMariner Posted May 2, 2008 Share Posted May 2, 2008 asmith... css layouts are something that will take 2-3 days to learn and play with - the BEST 3 days you will ever spend in web development... As with anything there are a number of ways to achieve the desired goals - someone showing you how to do it will NOT help you learn as much as you doing it yourself... Go, play and develop... Link to comment https://forums.phpfreaks.com/topic/103836-table-diff-height/#findComment-531779 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.