Solved

html table

Posted on 2011-02-14
2
270 Views
Last Modified: 2012-05-11
Hi Experts,

I am modifying a site done by someone else and the have used tables throughout the site.  I prefer semantic xhtml/css with divs.

Have look at the attached image and the table html below.  I would like to create a single div occupying the 'special promotions' cell and the hello world 3 cell.. kind of like merging them into one cell in that column while keeping the two rows in the first column (hello world & hello world 2).

I can't disturb that first first column and related rows because the orginal dev guy will go crazy.  Is there a way to merge the two tds on the right into one?

In the image you can see 'special promotions' and then an empty space below, the space is the empty cell below it.  I want make both cells one big cell (td) without messing with the other rows/cells.

here is the table:

<table>
<tr>
<td>
hello world
</td>
<td>
special promotions
</td>
</tr>

<tr>
<td>
hello world 2
</td>
<td>
hello world 3
</td>
</tr>
</table>
 sample 2
0
Comment
Question by:HelpNearMe
2 Comments
 
LVL 16

Accepted Solution

by:
HagayMandel earned 500 total points
ID: 34891761
Check this:
<table>
<tr>
<td>
hello world</td>
<td rowspan="2"> special promotions hello world 3 </td>
</tr>
<tr>
<td>
hello world 2</td>
</tr>
</table>

Open in new window

0
 

Author Comment

by:HelpNearMe
ID: 34891796
row span?  so obvious.. didn't occur to me thanx I'll try
0

Featured Post

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
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…
In this tutorial viewers will learn how to style different bullet points for unordered lists in CSS. Begin with a normal unordered list; the default bullet point is a solid circle: In the CSS, create a defined class of unordered list by typing "ul.S…
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…

762 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

16 Experts available now in Live!

Get 1:1 Help Now