Jump to content


Photo

table rowspan


  • Please log in to reply
3 replies to this topic

#1 pneudralics

pneudralics
  • Members
  • PipPipPip
  • Advanced Member
  • 241 posts

Posted 12 March 2006 - 12:21 PM

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" >


<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>


#2 AndyB

AndyB
  • Staff Alumni
  • Advanced Member
  • 5,465 posts
  • LocationToronto

Posted 12 March 2006 - 12:25 PM

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:
<td rowspan="2" style="width:98%;font-size:8pt;vertical-align:middle;" class="mainmenu3">

What are you trying to do?
Legend has it that reading the manual never killed anyone.
My site

#3 pneudralics

pneudralics
  • Members
  • PipPipPip
  • Advanced Member
  • 241 posts

Posted 12 March 2006 - 12:47 PM

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.

#4 AndyB

AndyB
  • Staff Alumni
  • Advanced Member
  • 5,465 posts
  • LocationToronto

Posted 12 March 2006 - 01:14 PM

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.
Legend has it that reading the manual never killed anyone.
My site




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users