...

View Full Version : Help in creating a merged table



Scots
07-21-2011, 04:06 PM
I am struggling to create a merged table. I can get a basic one but it is all over the place when I try to merge cells

What I need is:

3 columns
10 rows

The entire table needs to be 200px

The first and third column needs to be 15px

Within the first and 3rd column I needs rows 2 to 9 to be merged

Any help would be appreciated. :)

teedoff
07-21-2011, 04:43 PM
Sounds like a homework assignment.

What have you got so far? You cant expect someone to code the whole thing for you can you?

alykins
07-22-2011, 05:58 AM
hint
colspan="8"

vikram1vicky
07-22-2011, 09:02 AM
Check following code:



<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
</head>

<body>
<table width="200" border="1" cellpadding="2">
<tr>
<td width="15">&nbsp;</td>
<td>&nbsp;</td>
<td width="15">&nbsp;</td>
</tr>
<tr>
<td rowspan="8">&nbsp;</td>
<td>&nbsp;</td>
<td rowspan="8">&nbsp;</td>
</tr>
<tr>
<td>&nbsp;</td>
</tr>
<tr>
<td>&nbsp;</td>
</tr>
<tr>
<td>&nbsp;</td>
</tr>
<tr>
<td>&nbsp;</td>
</tr>
<tr>
<td>&nbsp;</td>
</tr>
<tr>
<td>&nbsp;</td>
</tr>
<tr>
<td>&nbsp;</td>
</tr>
<tr>
<td>&nbsp;</td>
<td>&nbsp;</td>
<td>&nbsp;</td>
</tr>
</table>
</body>
</html>


:)

Scots
07-22-2011, 11:01 AM
Thats great thanks for your help folks much appreciated.

I am basically trying to create a template for email and was told it was best to use tables to do everything and I was struggling with merging cells and getting it look how I want it, I just need to apply styling now.

Thanks again



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum