/    Sign up×
Community /Pin to ProfileBookmark

table problem

Hi

I am having a problem with the following code. The first 2 rows are only covering the width of the column containing the text “1”. Any ideas? thanks

[code=html]<html>

<head>
<title>Table Test</title>
</head>

<body>

<TABLE BORDER=1 width = “100%” height = “100%” >

<TR colspan = “3” width = “100%” height = “25%”>
<TD>
Header
</TD>
</TR>

<TR colspan = “3” width = “100%” height = “5%”>
<TD>
Nav Bar
</TD>
</TR>

<TR>
<TD rowspan=3 width = “20%”>
1
</TD>

<TD>
2
</TD>
<TD width = “20%”>
3
</TD>
</TR>
<TR>
<TD>
4
</TD>
<TD rowspan=2 width = “20%”>
5
</TD>
</TR>
<TR>
<TD>
6
</TD>
</TR>
</TABLE>

</body>

</html>[/code]

to post a comment
HTML

2 Comments(s)

Copy linkTweet thisAlerts:
@nickelleonAug 03.2009 — The colspan attribute belongs on the <td> tag.

Width and height are up to you.
Copy linkTweet thisAlerts:
@vik111authorAug 03.2009 — cheers bud. silly mistake on my part. thread closed
×

Success!

Help @vik111 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.20,
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,
)...