/    Sign up×
Community /Pin to ProfileBookmark

Table size problem

quick and simple:

My tables a raping me. This is problem a simple corrected problem, but I still need help. When I do height=”–” and width=”–” the page decides to tell me, “Go die, I’m not doing it.” If I put height=”5″ on a <td> tag, it will use height=”100%” instead and fill the entire table.

How do I stop the raping guys? …how do I make the pain go away? ?

to post a comment
HTML

1 Comments(s)

Copy linkTweet thisAlerts:
@WoDJul 15.2005 — First. What the hell kind of number is "--".

Second. The height of a TD tag in a single row table is always equal to the hight of the table, that is how tables WORK!

Paste this into your favourite editor:

[code=php]
<table width="400" height="200">
<tr>
<td height="100">I have given this cell a height</td>
<td rowspan="2">This cell has a rowspan of two and the full height of the table</td>
</tr>
<tr>
<td>Because there is a new row below it to occupy the remaining space</td>
</tr>
</table>
[/code]
×

Success!

Help @mysterio2099 spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.25,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...