Web Layout
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
 
User Name:
Password:
Remember me
Go Back   ASP Free ForumsWeb DesignWeb Layout

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread ASP Free Forums Sponsor:
  #1  
Old May 5th, 2005, 03:53 PM
ZLA ZLA is offline
Contributing User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Jun 2004
Posts: 44 ZLA User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 8 h 2 m 30 sec
Reputation Power: 5
Using Rowspan, can spanned rows have unequal heights

I have a simple table as follows:

Code:
<table width=120>
<tr>
<td width=100 rowspan=2>Short text</td>
<td width=10>Small</td>
</tr>
<tr>
<td>Large</td>
</tr>
<tr>
<td rowspan=2>Long text which is long enough to span more the first row
<td>Small</td>
</tr>
<tr>
<td>Large</td>
</tr>


I want the cell height for "Small" in the Long text row to be about the same height as the cell height for "Small" in the Short text row and have the cell height for "Large" in the Long text row to expand as much as necessary. I tried experimenting with row height but that didn't make a difference.

Any suggestions?

Thanks in advance.

Reply With Quote
  #2  
Old May 5th, 2005, 04:01 PM
mehere's Avatar
mehere mehere is offline
Senior Sarcasm Wizardess
Click here for more information.
 
Join Date: Feb 2005
Location: Dreamland
Posts: 12,867 mehere User rank is General 12nd Grade (Above 100000 Reputation Level)mehere User rank is General 12nd Grade (Above 100000 Reputation Level)mehere User rank is General 12nd Grade (Above 100000 Reputation Level)mehere User rank is General 12nd Grade (Above 100000 Reputation Level)mehere User rank is General 12nd Grade (Above 100000 Reputation Level)mehere User rank is General 12nd Grade (Above 100000 Reputation Level)mehere User rank is General 12nd Grade (Above 100000 Reputation Level)mehere User rank is General 12nd Grade (Above 100000 Reputation Level)mehere User rank is General 12nd Grade (Above 100000 Reputation Level)mehere User rank is General 12nd Grade (Above 100000 Reputation Level)mehere User rank is General 12nd Grade (Above 100000 Reputation Level)mehere User rank is General 12nd Grade (Above 100000 Reputation Level)mehere User rank is General 12nd Grade (Above 100000 Reputation Level)mehere User rank is General 12nd Grade (Above 100000 Reputation Level)mehere User rank is General 12nd Grade (Above 100000 Reputation Level)mehere User rank is General 12nd Grade (Above 100000 Reputation Level)  Folding Points: 10976 Folding Title: Novice Folder
Time spent in forums: 4 Months 4 Weeks 15 h 20 m 54 sec
Reputation Power: 1762
Not sure what your question is, but your layout is slightly off:
Code:
<table width=120> <tr> <td width=100 rowspan=2>Short text</td> <td width=10>Small</td> </tr>
<tr> <td width=10>Small 2</td> </tr> <tr> <td rowspan=2>Long text which is long enough to span more the first row <td>Large</td> </tr>
<tr> <td>Large 2</td> </tr>
</table>
Using this, my rowspans are not the same size.

Reply With Quote
  #3  
Old May 6th, 2005, 01:23 AM
baseballdude_'s Avatar
baseballdude_ baseballdude_ is offline
Expert Learner
ASP Free Intermediate (1500 - 1999 posts)
 
Join Date: Feb 2005
Location: Wisconsin
Posts: 1,890 baseballdude_ User rank is Second Lieutenant (5000 - 10000 Reputation Level)baseballdude_ User rank is Second Lieutenant (5000 - 10000 Reputation Level)baseballdude_ User rank is Second Lieutenant (5000 - 10000 Reputation Level)baseballdude_ User rank is Second Lieutenant (5000 - 10000 Reputation Level)baseballdude_ User rank is Second Lieutenant (5000 - 10000 Reputation Level)baseballdude_ User rank is Second Lieutenant (5000 - 10000 Reputation Level)baseballdude_ User rank is Second Lieutenant (5000 - 10000 Reputation Level)  Folding Points: 22104 Folding Title: Starter FolderFolding Points: 22104 Folding Title: Starter Folder
Time spent in forums: 1 Week 5 Days 13 h 36 m 9 sec
Reputation Power: 70
Send a message via AIM to baseballdude_ Send a message via MSN to baseballdude_ Send a message via Yahoo to baseballdude_ Send a message via Google Talk to baseballdude_
Please keep attributes within quotes. If at all possible, you'll want to convert to a CSS layout rather than a table layout as it is standard.

Reply With Quote
  #4  
Old May 6th, 2005, 01:26 AM
baseballdude_'s Avatar
baseballdude_ baseballdude_ is offline
Expert Learner
ASP Free Intermediate (1500 - 1999 posts)
 
Join Date: Feb 2005
Location: Wisconsin
Posts: 1,890 baseballdude_ User rank is Second Lieutenant (5000 - 10000 Reputation Level)baseballdude_ User rank is Second Lieutenant (5000 - 10000 Reputation Level)baseballdude_ User rank is Second Lieutenant (5000 - 10000 Reputation Level)baseballdude_ User rank is Second Lieutenant (5000 - 10000 Reputation Level)baseballdude_ User rank is Second Lieutenant (5000 - 10000 Reputation Level)baseballdude_ User rank is Second Lieutenant (5000 - 10000 Reputation Level)baseballdude_ User rank is Second Lieutenant (5000 - 10000 Reputation Level)  Folding Points: 22104 Folding Title: Starter FolderFolding Points: 22104 Folding Title: Starter Folder
Time spent in forums: 1 Week 5 Days 13 h 36 m 9 sec
Reputation Power: 70
Send a message via AIM to baseballdude_ Send a message via MSN to baseballdude_ Send a message via Yahoo to baseballdude_ Send a message via Google Talk to baseballdude_
You know, I'm not 100% sure because I only scanned the code, but I think you want to use "colspan" rather than "rowspan" in this instance.

Reply With Quote
  #5  
Old May 6th, 2005, 03:27 PM
ZLA ZLA is offline
Contributing User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Jun 2004
Posts: 44 ZLA User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 8 h 2 m 30 sec
Reputation Power: 5
mehere: I actually did want Small and Large to alternate but on review I did notice that the long text cell was missing the closing tag. I revised the layout as follows to be clearer:

Code:
  
<table width=150 border=1>
<tr>
  <td width=75 rowspan=2>Short text</td>
  <td width=75>Short 1a</td>
</tr>
<tr>
  <td>Short 1b</td>
</tr>
<tr>
  <td rowspan=2>Long text which is long enough to span more the first row</td>
  <td>Long 1a</td>
</tr>
<tr>
  <td>Long 1b</td>
</tr>
</table>
In IE 6, it comes out as the following (ASCII version):
-------------------------
| |Short 1a |
|Short Text |-----------
| |Short 1b |
-------------------------
-------------------------
|Long Text | |
|which is |Long 1a |
|long | |
|enough to |----------|
|span | |
|more the |Long 1b |
|first row | |
-------------------------
What I want to achieve is the following:
-------------------------
| |Short 1a |
|Short Text |-----------
| |Short 1b |
-------------------------
-------------------------
|Long Text |Long 1a |
|which is |----------|
|long |Long 1b |
|enough to | |
|span | |
|more the | |
|first row | |
-------------------------
Any thoughts?

Reply With Quote
  #6  
Old May 6th, 2005, 03:53 PM
mehere's Avatar
mehere mehere is offline
Senior Sarcasm Wizardess
Click here for more information.
 
Join Date: Feb 2005
Location: Dreamland
Posts: 12,867 mehere User rank is General 12nd Grade (Above 100000 Reputation Level)mehere User rank is General 12nd Grade (Above 100000 Reputation Level)mehere User rank is General 12nd Grade (Above 100000 Reputation Level)mehere User rank is General 12nd Grade (Above 100000 Reputation Level)mehere User rank is General 12nd Grade (Above 100000 Reputation Level)mehere User rank is General 12nd Grade (Above 100000 Reputation Level)mehere User rank is General 12nd Grade (Above 100000 Reputation Level)mehere User rank is General 12nd Grade (Above 100000 Reputation Level)mehere User rank is General 12nd Grade (Above 100000 Reputation Level)mehere User rank is General 12nd Grade (Above 100000 Reputation Level)mehere User rank is General 12nd Grade (Above 100000 Reputation Level)mehere User rank is General 12nd Grade (Above 100000 Reputation Level)mehere User rank is General 12nd Grade (Above 100000 Reputation Level)mehere User rank is General 12nd Grade (Above 100000 Reputation Level)mehere User rank is General 12nd Grade (Above 100000 Reputation Level)mehere User rank is General 12nd Grade (Above 100000 Reputation Level)  Folding Points: 10976 Folding Title: Novice Folder
Time spent in forums: 4 Months 4 Weeks 15 h 20 m 54 sec
Reputation Power: 1762
In IE the remaining columns/cells that are not spanned will always be equal size compared to the column/cells that are spanned.

ie:
rowspan 3 cells, the alternate cells will all be equal in size at 33% of the rowspan cell.

However, if you insert a height="2px" attribute on the <td> tag it will do what you want, but not in IE. It will, however, do it in Firefox. Don't know if there's a fix for IE, unless maybe if you use CSS.

Reply With Quote
  #7  
Old May 7th, 2005, 02:33 PM
ZLA ZLA is offline
Contributing User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Jun 2004
Posts: 44 ZLA User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 8 h 2 m 30 sec
Reputation Power: 5
Thanks mehere.

Reply With Quote
Reply

Viewing: ASP Free ForumsWeb DesignWeb Layout > Using Rowspan, spanned rows have equal heights


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway
Stay green...Green IT