/    Sign up×
Community /Pin to ProfileBookmark

why does

[CODE]<table>
<td>
<tr> a </tr>
<tr> b </tr>
</td>
<td>
<tr> c </tr>
<tr> d </tr>
</td>
</table>
[/CODE]

come out like

a b c d

when it should look like…

a c
b d

???

😑

to post a comment
HTML

9 Comments(s) ↴

Copy linkTweet thisAlerts:
@scragarFeb 20.2008 β€”Β swap your [b]tr[/b]'s and [b]td[/b]'s around.
Copy linkTweet thisAlerts:
@kelly23Feb 20.2008 β€”Β Because to get the result that you want, the code should be:

<i>
</i>&lt;table&gt;
&lt;tr&gt;
&lt;td&gt; a &lt;/td&gt;
&lt;td&gt; c &lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt; b &lt;/td&gt;
&lt;td&gt; d &lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;


hth
Copy linkTweet thisAlerts:
@WebJoelFeb 20.2008 β€”Β "<tr>" cannot exist inside of a "<td>", and "<td>" canot exist anywhere but inside of a "<tr>".. more-or-less the browser is trying it's best to render [I]something..[/I]
Copy linkTweet thisAlerts:
@lamdkauthorFeb 20.2008 β€”Β "<tr>" cannot exist inside of a "<td>", and "<td>" canot exist anywhere but inside of a "<tr>".. more-or-less the browser is trying it's best to render [I]something..[/I][/QUOTE]

ohh no wonder i am nub

this sucks cuz

i need to generate more and more columns... not rows arg

im using some code on the backend to try to make columns and stuff oh well

now im going to have like 25 for loops (using XQuery!!)

:eek:
Copy linkTweet thisAlerts:
@lamdkauthorFeb 20.2008 β€”Β ng
Copy linkTweet thisAlerts:
@DeathFeb 21.2008 β€”Β Yes you can't put a table row inside of a table division but you can put a table inside of a table row if I'm not mistaken.

Thanks, Death
Copy linkTweet thisAlerts:
@WebJoelFeb 22.2008 β€”Β Yes you can't put a table row inside of a [I]table division[/I] ...[/quote] You might want to call "<td>" "table data" cells and not "table divisions", -lest we confuse newcomers. ?

Nesting tables, -can be done but it's a bain and should be avoided. :mad:
Copy linkTweet thisAlerts:
@DeathFeb 22.2008 β€”Β Lol, and this is why I hate tables.

Thanks, Death
Copy linkTweet thisAlerts:
@WebJoelFeb 23.2008 β€”Β 'nested tables' had a particularly deletarious effect upon WIN-98 2nd Edition with minimal system RAM. I used to have ~, and any page with 3 or 4 'table nestings' almost always resulted in a lovely BSOD. A 'stack overflow' was the official cause. Increasing the RAM [I]helped[/I] but Win-98 had a 'software bug' that created this suseptability.

I much prefer using DIVisions, -they were made for and intended for just such nesting, and as such, work the processor much less.

And, -I have long since switched to XP (and Linux). ?
Γ—

Success!

Help @lamdk 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.1,
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: @Yussuf4331,
tipped: article
amount: 1000 SATS,

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

tipper: @Samric24,
tipped: article
amount: 1000 SATS,
)...