Re: working w/backgrounds

by "Cindy Stanley" <stanleysupport(at)prodigy.net>

 Date:  Sun, 15 Aug 1999 23:07:31 -0400
 To:  <hwg-basics(at)hwg.org>
  todo: View Thread, Original
From: sugarcrisp53(at)webtv.net <sugarcrisp53(at)webtv.net>
:When working with bordered backgrounds, what is the correct code? I
know
:it's tables but I forgot how to do it.

You could make a table w/ 2 table data cells and specify the width of
the first td to correspond w/ the width of your border itself. Then
specify the width of the second td to your preference. Keep in mind
different resolutions users may be viewing in. Sometimes, it can be
beneficial to specify your widths in percentages, rather than in fixed
pixels. Here is an example using percentages:

<TABLE border="0" cellpadding="0" cellspacing="0" width="100%">
<TR>
<TD width="15%" valign="top">any text you want to run down the left
side, or possible links, graphics, etc go here. Or a nbsp or a spacer
gif here.</TD>
<TD width="85%" valign="top">your main page content will go here</TD>
</TR>
</TABLE>

:Also, what's the code for top and right borders.
:Pam

Neither of these will validate, but you would use a set for IE and a
different set for NN, and place these in your body tag:

topmargin="0" marginheight="0" leftmargin="0" marginwidth="0"

--
Cindy K. Stanley

HTML: hwg-basics mailing list archives, maintained by Webmasters @ IWA