|
|
|
||||
|
Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact us. |
![]() |
|
|||||||
| Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed. |
|
|
Thread Tools |
|
|
#1 |
|
Confirmed User
Join Date: Apr 2002
Posts: 9,736
|
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 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? |
|
|
|
|
|
#2 |
|
Confirmed User
Join Date: May 2002
Location: CT
Posts: 5,246
|
add a percent sign so like 100 to 100% etc I think thats what your looking for
|
|
|
|
|
|
#3 |
|
Confirmed User
Join Date: Apr 2002
Posts: 9,736
|
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 |
|
|
|
|
|
#4 |
|
Confirmed User
Join Date: Apr 2002
Posts: 9,736
|
BAH! fucks me
|
|
|
|
|
|
#5 |
|
Confirmed User
Join Date: Feb 2002
Posts: 1,656
|
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"> </td> <td width="100" height="30"> </td> </tr> <tr> <td width="100" height="70"> </td> </tr> </table> PHP Code:
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:
|
|
|
|
|
|
#6 |
|
Confirmed User
Join Date: Apr 2002
Posts: 9,736
|
D'oh. Thanks
|
|
|
|