Jump to content

Archived

This topic is now archived and is closed to further replies.

pneudralics

table rowspan

Recommended Posts

Is there a way to add a rowspan to the following?
Since <td> has stlye in it is there a way to add rowspan?

<TD ROWSPAN="2" >


[code]<table style="width:100%;" cellspacing="0" cellpadding="0">
            <tr>
                        <td style="width:98%;font-size:8pt;vertical-align:middle;" class="mainmenu3">
                <div style="padding-left:10px;">
                <span style="vertical-align:middle;"> <b>{%TITLE%}</b></span>
                </div>
            </td>
            </tr>
            </table>[/code]

Share this post


Link to post
Share on other sites
No obvious reason why that table needs rowspan since it only has one row and only has one data cell. But there's no reason why you can't have code like that if you want it:
[code]<td rowspan="2" style="width:98%;font-size:8pt;vertical-align:middle;" class="mainmenu3">[/code]

What are you trying to do?

Share this post


Link to post
Share on other sites
I was trying to make the row larger, but I was just wondering if I can add rowspan inside the <td stlye> instead of doing a new td tag.

Share this post


Link to post
Share on other sites
No. ROWSPAN is used for when a table data cell needs to SPAN across more than one ROW of the table. It has nothing to do with the size of the table data cell. The size of a table is normally 'as big as it needs to be' to hold all of the content, and no bigger than anything it sits inside. You have a table that's 100% width - the rows in the table aren't going to get any bigger than that.

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.