Solved

How do i merge table cells together, from different rows ?

Posted on 2008-06-23
3
1,764 Views
Last Modified: 2008-06-24
Hello,

Imagine i was using the following tabular layout on my site (3 rows 3 columns with 9 cells):
=====================================
=        1            =          2          =          3          =      
=====================================
=        4            =          5          =          6          =
=====================================
=        7            =          8          =          9          =
=====================================

How would i merge cells 2,3,4,5,8,9 into a single cell? (These will be occupied by text, while the remaining cells will be used to hold images).


Many thanks in advance
0
Comment
Question by:Daniish
  • 2
3 Comments
 
LVL 12

Accepted Solution

by:
nexusnation earned 250 total points
ID: 21844539
Hi Daniish,

You can't merge cells that don't create a rectangle.

Your option involving tables would be to create one giant cell (1-9) and then aligned/floated nested tables for 1, 6 and 7.

The best option, however, would be to use CSS:
<div> <!--your main cell -->

<img style="float:left" src="someimage.jpg" /> <!-- fake cell 1 -->

<p>Some text</p>

<p>Some more text</p>

<img style="float:right" src="someimage.jpg" /> <!-- fake cell 2 -->

<p>Some more text</p>

<p>Some more text</p>

<p>Some more text</p>

<img style="float:left" src="someimage.jpg" /> <!-- fake cell 3 -->

<p>Some more text</p>

<p>Some more text</p>

</div>

Open in new window

0
 

Author Comment

by:Daniish
ID: 21844875
Thankyou for your feedback.

Would you mind also showing me how this can be accomplished using css?
(this would probably be easier to implement for my FCKeditor template)
0
 
LVL 12

Expert Comment

by:nexusnation
ID: 21852770
Check the code snippet in my first comment...
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Preface This is the third article about the EE Collaborative Login Project. A Better Website Login System (http://www.experts-exchange.com/A_2902.html) introduces the Login System and shows how to implement a login page. The EE Collaborative Logi…
Use these top 10 tips to master the art of email signature design. Create an email signature design that will easily wow recipients, promote your brand and highlight your professionalism.
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.

914 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now