Solved

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

Posted on 2008-06-23
3
1,770 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Why Off-Site Backups Are The Only Way To Go

You are probably backing up your data—but how and where? Ransomware is on the rise and there are variants that specifically target backups. Read on to discover why off-site is the way to go.

Question has a verified solution.

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

This is a PowerShell web interface I use to manage some task as a network administrator. Clicking an action button on the left frame will display a form in the middle frame to input some data in textboxes, process this data in PowerShell and display…
The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
The viewer will receive an overview of the basics of CSS showing inline styles. In the head tags set up your style tags: (CODE) Reference the nav tag and set your properties.: (CODE) Set the reference for the UL element and styles for it to ensu…
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

717 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