Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

HTML Forum


You are currently viewing our HTML Forum as a guest. Please register to participate.
Login



Post a Project »

Find a Professional HTML Freelancer!

Find a Freelancer to help you with your HTML projects

FREE Outsourcing eBook!

Reply
Old 03-13-2005, 10:15 AM Simple Colspan Prob
Junior Talker

Posts: 4
Trades: 0
Hi,

I have a problem with this code, it seems really simple but I just can't work it out. What I basically want to do is get the 4 cells at the top to span the 7 at the bottom. Here is the code:

Code:
<table width="100%" border="2">
    <tr>
    <td> </td>
    <td> </td>
    <td> </td>
    <td> </td>
  </tr>
  <tr>
    <td colspan="7"> </td>
  </tr>
  <tr>
    <td> </td>
    <td> </td>
    <td> </td>
    <td> </td>
    <td> </td>
    <td> </td>
    <td> </td>
  </tr>
</table>
I have attached a screenshot from dreamweaver too, just so you can see exactly what I'm on about (it's quite heavily compressed to reduce filesize).

Thanks for any help.
Attached Images
File Type: jpg screen.jpg (42.2 KB, 5 views)
lokksta is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 03-13-2005, 10:23 AM
OleTom's Avatar
Extreme Talker

Posts: 176
Location: Out there some where
Trades: 0
Hi lokksta

Why not just stack 2 tables ? Put 4 cells on the top table and 7 on the bottom as long as the tables are the same width
__________________
Life is Good,OleTom

Please login or register to view this content. Registration is FREE

Last edited by OleTom; 03-13-2005 at 10:28 AM..
OleTom is offline
Reply With Quote
View Public Profile Visit OleTom's homepage!
 
Old 03-13-2005, 10:39 AM
Junior Talker

Posts: 4
Trades: 0
Hi Tom,

Thanks for your reply. I was thinking about this, but the actual table I'm working on contains many small images to make up a larger image, so the cells need to be tight.

By having 2 tables as you suggested, would this create a gap between them or would they still be tight toghether?

Thanks again.
lokksta is offline
Reply With Quote
View Public Profile
 
Old 03-13-2005, 10:44 AM
Novice Talker

Posts: 6
Trades: 0
Quote:
Originally Posted by lokksta
Hi,

I have a problem with this code, it seems really simple but I just can't work it out. What I basically want to do is get the 4 cells at the top to span the 7 at the bottom. Here is the code:

Code:
<table width="100%" border="2">
    <tr>
    <td> </td>
    <td> </td>
    <td> </td>
    <td> </td>
  </tr>
  <tr>
    <td colspan="7"> </td>
  </tr>
  <tr>
    <td> </td>
    <td> </td>
    <td> </td>
    <td> </td>
    <td> </td>
    <td> </td>
    <td> </td>
  </tr>
</table>
I have attached a screenshot from dreamweaver too, just so you can see exactly what I'm on about (it's quite heavily compressed to reduce filesize).

Thanks for any help.

<table width="100%" border="2">
<tr width="100%">
<td colspan="2" width="25%">I</td>
<td colspan="2" width="25%">CAN'T </td>
<td colspan="2" width="25%">DO </td>
<td colspan="2" width="25%">IT </td>
</tr>
<tr>
<td colspan="8">WITH </td>
</tr>
<tr>
<td width="12%">SEVEN </td>
<td width="13%">CELLS </td>
<td width="12%">BUT </td>
<td width="13%">CHEATING </td>
<td width="12%">WITH </td>
<td width="13%">EIGHT </td>
<td width="12%">WORKS </td>
<td width="13%">SORT-OF </td>
</tr>
</table>
shaber is offline
Reply With Quote
View Public Profile
 
Old 03-13-2005, 10:44 AM
Junior Talker

Posts: 4
Trades: 0
Hi Again,

Just tried what you suggested and it works perfectly, no gaps

Thanks for the suggestion

lokksta is offline
Reply With Quote
View Public Profile
 
Old 03-13-2005, 10:48 AM
Junior Talker

Posts: 4
Trades: 0
Hi Shaber,

Thanks for your reply. I tried using 2 seperate tables, as suggested by OleTom and it works well, so I kind of gave up on the colspan for that table.

I still use it on another table, but that one has to span just one cell. It seems that colspan doesnt like multiple cells spanning multiple cells for some reason

Anyway, thanks for taking the time to reply
lokksta is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Simple Colspan Prob
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 2.81189 seconds with 13 queries