Jump to content

table diff height


asmith

Recommended Posts

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

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

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.