Possible to surround a table with a cell...after the fact?

C

comcast

I am in no way a HTML wiz although I have been attempting to learn as much
as possible...but not yet enough to solve this problem. At line 48 (noted &
marked below) I inserted a table that was ment to be placed inside a cell,
but alas I forgot it, now I am not able to insert a vert-tiling background.
If someone could help me out on coding, if it is even possible, it would be
greatly appreciated. I have about 15 pages that require this change and most
are chock full of links and CSS inserted into the tables. If it were not for
that I would just remove the table and rebuild the cell from scratch.

Cheers!
Tk






<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Contact Solid Ground!</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link href="../sg_stylesheet.css" rel="stylesheet" type="text/css">
</head>

<body bgcolor="#000000" link="#FF9900" vlink="#FF9900" alink="#FFFFFF"
topmargin="1" marginheight="1">
<table width="770" border="0" align="center" cellpadding="1" cellspacing="0"
bgcolor="#663300">
<!--DWLayoutTable-->
<tr>
<td width="768"></td>
</tr>
<tr>
<td valign="top">
<table width="100%" border="0" align="center" cellpadding="0"
cellspacing="0" bgcolor="#000000">
<!--DWLayoutTable-->
<tr>
<td colspan="4" valign="top"><img src="../images/head.jpg"
alt="header" width="768" height="100"></td>
</tr>
<tr>
<td colspan="3" valign="top"> <table width="100%" border="0"
cellpadding="0" cellspacing="0">
<!--DWLayoutTable-->
<tr>
<td width="440" height="18" valign="middle"
bgcolor="#000000"><font color="#FF9900" size="1" face="Verdana, Arial,
Helvetica, sans-serif">
<font color="#000000">...</font><a
href="../the_band/our_band.htm">The
Band</a><font color="#000000"> .</font>|<font
color="#000000">..</font><a href="../the_music/why_do_the_music.htm">The
Music</a><font color="#000000">.</font> |<font
color="#000000">.</font>
<a href="../the_latest/band_news.htm">The Latest</a><font
color="#000000">.</font>
| <font color="#000000">.</font><a
href="../multimedia/music_samples.htm">Multimedia</a><font
color="#000000">..</font>|<font color="#000000">..</font><a
href="../contacts/contacts.htm">Contacts</a><font color="#000000">.</font>
|<font color="#000000">.</font> <a
href="../index.htm">Home</a></font></td>
</tr>
</table></td>
<td width="328" valign="top"><img src="../images/head_ext.jpg"
alt="header_ext" width="328" height="18"></td>
</tr>
<tr>
<td colspan="3" valign="top" bgcolor="#663300"><img
src="../images/spacer.gif" width="1" height="1"></td>
<td rowspan="3" valign="top"><img src="../images/psalm.gif"
alt="psalm" width="328" height="48"></td>
</tr>
<tr>
<td height="46" colspan="3" valign="top"
class="contacts"><!--DWLayoutEmptyCell-->&nbsp;</td>
</tr>
<tr>
<td height="1" colspan="3" valign="bottom" bgcolor="#663300"><img
src="../images/spacer.gif" width="1" height="1"></td>
</tr>
<tr>
(LINE 48) <td width="148" valign="top"> <table width="148" border="0"
cellpadding="0" cellspacing="0" bgcolor="#000000">
<!--DWLayoutTable-->
<tr>
<td width="138" height="20" align="right"
valign="middle"><img src="../images/spacer.gif" width="138"
height="20"></td>
<td width="10"><img src="../images/spacer.gif" width="10"
height="20"></td>
</tr>
<tr>
<td height="20" align="right"
valign="middle"><!--DWLayoutEmptyCell-->&nbsp;</td>
<td valign="top"><img src="../images/spacer.gif" width="10"
height="20"></td>
</tr>
<tr>
<td height="20" align="right" valign="middle"><font
color="#FF9900" size="1" face="Verdana, Arial, Helvetica, sans-serif">&nbsp;
</font></td>
<td valign="top"><img src="../images/spacer.gif" width="10"
height="20"></td>
</tr>
<tr>
<td height="20" align="right" valign="middle"><font
color="#FF9900" size="1" face="Verdana, Arial, Helvetica, sans-serif">&nbsp;
</font></td>
<td valign="top"><img src="../images/spacer.gif" width="10"
height="20"></td>
</tr>
<tr>
<td height="20" align="right" valign="middle"><font
color="#FF9900" size="1" face="Verdana, Arial, Helvetica, sans-serif">&nbsp;
</font></td>
<td valign="top"><img src="../images/spacer.gif" width="10"
height="20"></td>
</tr>
<tr>
<td height="20" align="right"
valign="middle"><!--DWLayoutEmptyCell-->&nbsp;</td>
<td valign="top"><img src="../images/spacer.gif" width="10"
height="20"></td>
</tr>
<tr>
<td height="20" align="right" valign="middle"><font
color="#FF9900" size="1" face="Verdana, Arial, Helvetica, sans-serif">&nbsp;
</font></td>
<td valign="top"><img src="../images/spacer.gif" width="10"
height="20"></td>
</tr>
<tr>
<td height="20" align="right" valign="middle"><font
color="#FF9900" size="1" face="Verdana, Arial, Helvetica, sans-serif">&nbsp;
</font></td>
<td valign="top"><img src="../images/spacer.gif" width="10"
height="20"></td>
</tr>
<tr>
<td height="89"></td>
</tr>
</table></td>
<td width="1">&nbsp;</td>
<td colspan="2" valign="top"><table width="100%" border="0"
cellpadding="20" cellspacing="0">
<!--DWLayoutTable-->
<tr>
<td width="558" height="249"
valign="top"><!--DWLayoutEmptyCell-->&nbsp;</td>
</tr>
</table></td>
</tr>
<tr>
<td colspan="4" valign="top"><img src="../images/footer.gif"
width="768" height="19"></td>
</tr>
<tr>
<td></td>
<td></td>
<td width="291"></td>
<td></td>
</tr>
</table></td>
</tr>
</table>
</body>
</html>
 
K

Karl Core

comcast said:
I am in no way a HTML wiz although I have been attempting to learn as much
as possible...but not yet enough to solve this problem. At line 48 (noted &
marked below) I inserted a table that was ment to be placed inside a cell,
but alas I forgot it, now I am not able to insert a vert-tiling background.
If someone could help me out on coding, if it is even possible, it would be
greatly appreciated. I have about 15 pages that require this change and most
are chock full of links and CSS inserted into the tables. If it were not for
that I would just remove the table and rebuild the cell from scratch.

please don't make any more websites.
 
K

Kris

comcast said:
I am in no way a HTML wiz although I have been attempting to learn as much
as possible...but not yet enough to solve this problem. At line 48 (noted &
marked below) I inserted a table that was ment to be placed inside a cell,
but alas I forgot it, now I am not able to insert a vert-tiling background.
If someone could help me out on coding, if it is even possible, it would be
greatly appreciated. I have about 15 pages that require this change and most
are chock full of links and CSS inserted into the tables. If it were not for
that I would just remove the table and rebuild the cell from scratch.

[code listing snipped]

Please supply a URL where your work is visible. Don't post listings like
this to Usenet and expect people to help you efficiently.

Advice:
- get rid of Dreamweaver; it produces bloat. Learn HTML and use a text
editor instead. It is not difficult.
- get rid of anything in your code that has to do with presentation or
is deprecated in another way. Things like FONT, TABLEs for layout,
&nbsp;'s for margins. use CSS instead. To find out what else is
deprecated,
- validate your HTML, at http://validator.w3.org/

A vertical tiling background can be easily achieved by CSS. Here an
example of that on the BODY element:
body {
background-image: url("image.gif");
background-repeat: repeat-y;
}

Add that to your STYLE section or, better yet, your external style sheet.
 
B

Barry Pearson

comcast said:
I am in no way a HTML wiz although I have been attempting to learn as
much as possible...but not yet enough to solve this problem. At line
48 (noted & marked below) I inserted a table that was ment to be
placed inside a cell, but alas I forgot it, now I am not able to
insert a vert-tiling background. If someone could help me out on
coding, if it is even possible, it would be greatly appreciated. I
have about 15 pages that require this change and most are chock full
of links and CSS inserted into the tables. If it were not for that I
would just remove the table and rebuild the cell from scratch.
[snip]

Note that there is a newsgroup dedicated to Dreamweaver. However, make sure
you access it via the Macromedia server, because there is no feed into that
server from the rest of Usenet, although there is a feed out. The newsgroup is
macromedia.dreamweaver , and uses the server forums.macromedia.com .

I guess you used Dreamweaver layout view? The first thing they would tell you
in that newsgroup is *don't*! I have no experience with it myself, (although I
use Dreamweaver), but it appears to generate dreadful code that is not only
unduly complicated but is also fragile. (And, frankly, that appears to be what
you have). Stick to code view and design view, perhaps in split-screen mode,
and you can have perfectly respectable code. Having these 2 views gives you
the best of both worlds, combined with a CSS editor too.

As for your particular problem, I doubt if you can solve it in layout view.
But you ought to be able to find the changes you need to make to one of the
pages to add the extra table, then work out a sequence of "find & replaces" to
change all the pages. (Take a backup first). Or simply open all 15 pages, put
the extra code on the clipboard, then paste it into code view.

Give serious thought to re-thinking the layout of those pages, making them
much simpler and using CSS to control them. (You can safely still use layout
tables if you want, but learn how to do them properly). Then copy-n-paste the
contents of cells from one version to the other.
 
R

Richard

comcast wrote:

I am in no way a HTML wiz although I have been attempting to learn as
much as possible...but not yet enough to solve this problem. At line 48
(noted & marked below) I inserted a table that was ment to be placed
inside a cell, but alas I forgot it, now I am not able to insert a
vert-tiling background. If someone could help me out on coding, if it is
even possible, it would be greatly appreciated. I have about 15 pages
that require this change and most are chock full of links and CSS
inserted into the tables. If it were not for that I would just remove the
table and rebuild the cell from scratch.
Cheers!
Tk

I'd redo the site entirely in divisions.
You have much more flexibility than with table cells.
Spacer images are for the lazy who do not how to use the attributes
properly.

I put your listing into my editor and could not detect any notable problem
with it.
But if you used divisions, you could easily put in a background image for
each "cell".
 
G

giganews

Richard said:
comcast wrote:Thanks to all for your replies!





Thanks to all for your replies!

@Kris
Unfortunately I've not published the site yet therefore I was unable to
provide a URL.

I understand what you mean regarding Dreamweaver "bloating" the HTML. Even
with what little grasp I have of coding I still find myself going into code
view and making adjustments to Dreamweaver's proensity to take over. I was
making an attempt to dominate the site using CSS but I did fail in a number
of areas...will reload and give it another shot after a bit more studying!

@Barry
You read my code like a book. Yes I did use DW in layout view for the
majority of the assembly. As my friend, for whom I am building this site,
needs this live soon I will probably attempt n edit of the code to insert
that call but will also be using the many suggestions I've received to
rethink and completely rebuild the site. Also, many thanks for the info
regarding the macromedia.dreamweaver site, I already have it dialed
in...just in case!

@Richard
I've come across a good number of sites touting the use of the <div> tag. Up
till now I have mostly dismissed it due to ignorance most likely. I'll be
sure to reinvestigate those site an make a concerted effort to understand
their proper use.

@Karl
You seem to be a seasoned useneter so I would've thought you might
understand one of the basic rules. If you can praise...offer it up, If you
can offer "constructive criticism"...by all means offer it up, if you can do
neither...it is best not to offer anything! I know full well that my design,
layout and code are atrocious but without a bit of direction it would most
likely remain that way. Thanks to people like Kris, Barry and Richard I may
some day be proficient. I'm sure you could attest, the ability to assemble a
quality website is not a genetically inherited trate.

@All
Many thanks for you input regarding my query. You have given me an adrenalin
shot in regards to wanting to learn more, giving me the ability to build
clean non-commercial websites for my friends.

Best Regards,
Kt
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,578
Members
45,052
Latest member
LucyCarper

Latest Threads

Top