Solved

html table

Posted on 2011-02-14
2
273 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

Does Powershell have you tied up in knots?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

Question has a verified solution.

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

Suggested Solutions

Browsers only know CSS so your awesome SASS code needs to be translated into normal CSS. Here I'll try to explain what you should aim for in order to take full advantage of SASS.
Is your Office 365 signature not working the way you want it to? Are signature updates taking up too much of your time? Let's run through the most common problems that an IT administrator can encounter when dealing with Office 365 email signatures.
In this tutorial viewers will learn how to embed an audio file in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: : The declaration should display (CODE) HTML5 is supported by the most recent versions of all major browsers…
In this tutorial viewers will learn how to style rounded corners for elements in CSS using the border-radius property Begin with a normal styled element such as a div: To style all four corners of the div to be the same degree of roundness, use the …

809 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