GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   Table problems.. (https://gfy.com/showthread.php?t=64237)

chodadog 06-13-2002 10:20 PM

Table problems..
 
I seem to have no control over the way my table cells are sizing!

Take this table for example

PHP Code:

<table border="1" width="200" table height="100">
<
tr>
<
td width="100" height="100" rowspan="2">100 wide100 high</td>
<
td width="100" height="30">100 widecoded for 30 high</td>
</
tr>
<
tr>
<
td width="100" height="70">100 widecoded for 70 high</td>
</
tr>
</
table

produces..

<table border="1" width="200" table height="100">
<tr>
<td width="100" height="100" rowspan="2">100 wide, 100 high</td>
<td width="100" height="30">100 wide, coded for 30 high</td>
</tr>
<tr>
<td width="100" height="70">100 wide, coded for 70 high</td>
</tr>
</table>

wTF? Why do the two right cells split evenly, rather than the heights i have specified? Am i doing something wrong?

foe 06-13-2002 10:21 PM

add a percent sign so like 100 to 100% etc I think thats what your looking for

chodadog 06-13-2002 10:22 PM

i'll give it a go..

<table border="1" width="200" table height="100">
<tr>
<td width="100" height="100" rowspan="2">100 wide, 100 high</td>
<td width="100" height="30%">30%</td>
</tr>
<tr>
<td width="100" height="70%">70%</td>
</tr>
</table

chodadog 06-13-2002 10:23 PM

BAH! fucks me :(

marty 06-14-2002 12:53 AM

The large text stretches the table to make itself fit. And since you had the same amount of large text in the top as in the bottom it went to 50-50.

You can either remove the text or minimize the text as shown below.
Code:

<table border="1" width="200" table height="100">
<tr>
<td width="100" height="100" rowspan="2">&nbsp;</td>
<td width="100" height="30">&nbsp;</td>
</tr>
<tr>
<td width="100" height="70">&nbsp;</td>
</tr>
</table>

PHP Code:

<table border="1" width="200" table height="100">
<
tr>
<
td width="100" height="100" rowspan="2">&nbsp;</td>
<
td width="100" height="30">&nbsp;</td>
</
tr>
<
tr>
<
td width="100" height="70">&nbsp;</td>
</
tr>
</
table

Code:

<table border="1" width="200" table height="100">
<tr>
<td width="100" height="100" rowspan="2"><FONT SIZE=1>100 wide, 100 high</FONT></td>
<td width="100" height="30"><FONT SIZE=1>100 wide, coded for 30 high</FONT></td>
</tr>
<tr>
<td width="100" height="70"><FONT SIZE=1>100 wide, coded for 70 high</FONT></td>
</tr>
</table>

PHP Code:

<table border="1" width="200" table height="100">
<
tr>
<
td width="100" height="100" rowspan="2"><FONT SIZE=1>100 wide100 high</FONT></td>
<
td width="100" height="30"><FONT SIZE=1>100 widecoded for 30 high</FONT></td>
</
tr>
<
tr>
<
td width="100" height="70"><FONT SIZE=1>100 widecoded for 70 high</FONT></td>
</
tr>
</
table


chodadog 06-14-2002 01:15 AM

D'oh. Thanks


All times are GMT -7. The time now is 09:04 PM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2026, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123