View Full Version : Rowspan?


knudddel
01-28-2004, 11:39 AM
I'm just trying around with layouts and now I have a problem with a table layout. It's like
<tr>
<td></td>
<td></td>
<td></td>
<td colspan=3>
<td></td>
</tr>

<tr>
<td></td>
<td></td>
<td></td>
<td colspan=3>
<td></td>
</tr>

Now I want ONLY the "colspan" and "colspan" piece to be rowspan. Is there a way to do that?
This is the table I'm talking about (http://www.freewebs.com/knudddel/layout.htm)

Thanks :D

Loren
01-28-2004, 12:35 PM
So what are you wanting? Can you just add rowspan="your number" to the td tag?

Example: <td colspan=3 rowspan=2>

knudddel
01-28-2004, 12:50 PM
Oh, you're totally right! It worked first try! Thanks sooooo much :D I don't know why I can't think of that. I just thought... oh well, doesn't matter. Thanks loads, you helped me soooooo much!

knudddel
01-28-2004, 01:26 PM
Umm ... I guess I need a little help again: This is what my document looks like:

<HTML>
<HEAD>
</HEAD>
<BODY BGCOLOR="#000000">
<TABLE WIDTH="780px" HEIGHT="810px" CELLSPACING="0" CELLPADDING="0" BORDER="0" BACKGROUND="voll.png">


<TR>
<TD WIDTH="11px" HEIGHT="40px"></TD>
<TD WIDTH="190px"></TD>
<TD WIDTH="20px"></TD>
<TD WIDTH="258px"></TD>
<TD WIDTH="197px"></TD>
<TD WIDTH="38px"></TD>
<TD></TD>
</TR>


<TR>
<TD HEIGHT="30px"></TD>
<TD></TD>
<TD></TD>
<TD></TD>
<TD><DIV STYLE="WIDTH:100%; HEIGHT:100%; OVERFLOW:AUTO; BORDER:0PX SOLID BLACK"></DIV></TD>
<TD></TD>
<TD></TD>
</TR>


<TR>
<TD HEIGHT="220px"></TD>
<TD></TD>
<TD></TD>
<TD></TD>
<TD><DIV STYLE="WIDTH:100%; HEIGHT:100%; OVERFLOW:AUTO; BORDER:0PX SOLID BLACK"></DIV></TD>
<TD></TD>
<TD></TD>
</TR>


<TR>
<TD HEIGHT="80px"></TD>
<TD></TD>
<TD></TD>
<TD></TD>
<TD></TD>
<TD></TD>
<TD></TD>
</TR>


<TR>
<TD HEIGHT="30px"></TD>
<TD></TD>
<TD></TD>
<TD COLSPAN="2"><DIV STYLE="WIDTH:100%; HEIGHT:100%; OVERFLOW:AUTO; BORDER:0PX SOLID BLACK"></DIV></TD>
<TD></TD>
</TR>


<TR>
<TD HEIGHT="29px"></TD>
<TD><DIV STYLE="WIDTH:100%; HEIGHT:100%; OVERFLOW:AUTO; BORDER:0PX SOLID BLACK"></DIV></TD>
<TD></TD>
<TD COLSPAN="2" ROWSPAN="3"><DIV STYLE="WIDTH:100%; HEIGHT:100%; OVERFLOW:AUTO; BORDER:0PX SOLID BLACK"></DIV></TD>
<TD></TD>
</TR>


<TR>
<TD HEIGHT="300px"></TD>
<TD><DIV STYLE="WIDTH:100%; HEIGHT:100%; OVERFLOW:AUTO; BORDER:0PX SOLID BLACK"></DIV></TD>
<TD></TD>
<TD></TD>
</TR>


<TR>
<TD HEIGHT="71px"></TD>
<TD></TD>
<TD></TD>
<TD></TD>
</TR>


<TR>
<TD></TD>
<TD></TD>
<TD></TD>
<TD></TD>
<TD></TD>
<TD></TD>
<TD></TD>
</TR>



</TABLE>
</BODY>
</HTML>


and here (http://www.freewebs.com/knudddel/layout.htm)'s the result. But now the upper right div boxes (the first two <DIV STYLE=""...>) are way too much on the right side. What on earth's wrong now?!

Loren
01-28-2004, 03:39 PM
What do you mean. It looks fine to me.

knudddel
01-28-2004, 08:30 PM
What do you mean. It looks fine to me.

I don't know. I think I made a mistake with widths and heights. I guess I'll have to do it all again *sigh* But thanks TRUCKLOADS for the rowspan and colspan. I saw a thread before with rowspan, but I didn't understand that. I wish I were better with tables.

knudddel
01-28-2004, 10:09 PM
Oh NO! I did it again and it looks perfect. This is what I wrote:

<HTML>
<HEAD>
</HEAD>
<BODY BGCOLOR="#000000">
<TABLE WIDTH="780px" HEIGHT="810px" CELLSPACING="0" CELLPADDING="0" BORDER="1" BACKGROUND="voll.png">


<TR>
<TD WIDTH="11px" HEIGHT="40px"></TD>
<TD WIDTH="205px"></TD>
<TD WIDTH="19px"></TD>
<TD WIDTH="258px"></TD>
<TD WIDTH="197px"></TD>
<TD WIDTH="38px"></TD>
<TD></TD>
</TR>


<TR>
<TD HEIGHT="29px"></TD>
<TD></TD>
<TD></TD>
<TD></TD>
<TD>
<DIV STYLE="WIDTH:197px; HEIGHT:29px; OVERFLOW:AUTO; BORDER:0PX SOLID BLACK"></DIV></TD>
<TD></TD>
<TD></TD>
</TR>


<TR>
<TD HEIGHT="217px"></TD>
<TD></TD>
<TD></TD>
<TD></TD>
<TD><DIV STYLE="WIDTH:197px; HEIGHT:217px; OVERFLOW:AUTO; BORDER:0PX SOLID BLACK"></DIV></TD>
<TD></TD>
<TD></TD>
</TR>


<TR>
<TD HEIGHT="81px"></TD>
<TD></TD>
<TD></TD>
<TD></TD>
<TD></TD>
<TD></TD>
<TD></TD>
</TR>


<TR>
<TD HEIGHT="27px"></TD>
<TD></TD>
<TD></TD>
<TD COLSPAN="3"><DIV STYLE="WIDTH:495px; HEIGHT:27px; OVERFLOW:AUTO; BORDER:0PX SOLID BLACK"></DIV></TD>
<TD></TD>
</TR>


<TR>
<TD HEIGHT="29px"></TD>
<TD>
<DIV STYLE="WIDTH:205px; HEIGHT:29px; OVERFLOW:AUTO; BORDER:0PX SOLID BLACK"></DIV></TD>
<TD></TD>
<TD COLSPAN="3" ROWSPAN="3"><DIV STYLE="WIDTH:495px; HEIGHT:397px; OVERFLOW:AUTO; BORDER:0PX SOLID BLACK"></DIV></TD>
<TD></TD>
</TR>


<TR>
<TD HEIGHT="300px"></TD>
<TD>
<DIV STYLE="WIDTH:205px; HEIGHT:300px; OVERFLOW:AUTO; BORDER:0PX SOLID BLACK"></DIV></TD>
<TD></TD>
<TD></TD>
</TR>


<TR>
<TD HEIGHT="70px"></TD>
<TD></TD>
<TD></TD>
<TD></TD>
</TR>


<TR>
<TD></TD>
<TD></TD>
<TD></TD>
<TD></TD>
<TD></TD>
<TD></TD>
<TD></TD>
</TR>



</TABLE>
</BODY>
</HTML>


But as soon as I put <TABLE BORDER="0"...> the whole thing slides somewhere else. At freewebs.com the background shows, but on freepgs.com the background doesn't. What on earth is wrong?!

Loren
01-29-2004, 12:45 PM
I have no clue. I've never had a borderless table go sliding off somewhere.

knudddel
01-30-2004, 09:06 AM
I have no clue. I've never had a borderless table go sliding off somewhere.

Me neither :( Too bad but thanks for the effort. I'll do a new layout :(

Rosey
01-30-2004, 02:04 PM
It looks fine to me..where exactly does it slide to?

knudddel
01-30-2004, 04:28 PM
It looks fine to me..where exactly does it slide to?

It somehow slides to the right. I have no idea why, but I'll try it again on my new guinea pig layout i think :)