myatia
Programmer
- Nov 21, 2002
- 232
Hi,
I want to have a 100px or so white border at the top of a page stretch the full width of the page. Obviously, <TABLE WIDTH="100%"> will do this *in the viewable area*. The problem is, I have a table in the page with a width of 800px. If the window is changed to a width less than that, then a scrollbar appears at the bottom. If one scrolls to the right, the border at the top is cut off at the point of what was viewable in the page at the original window size. To see what's happening, please see
or look at the code below. Any help would be appreciated.
Thanks,
Misty
I want to have a 100px or so white border at the top of a page stretch the full width of the page. Obviously, <TABLE WIDTH="100%"> will do this *in the viewable area*. The problem is, I have a table in the page with a width of 800px. If the window is changed to a width less than that, then a scrollbar appears at the bottom. If one scrolls to the right, the border at the top is cut off at the point of what was viewable in the page at the original window size. To see what's happening, please see
or look at the code below. Any help would be appreciated.
Thanks,
Misty
Code:
/* TABLE STYLE SHEET */
TABLE.brandbar {
margin-bottom: 6px;
margin-top:0px;
margin-right:0px;
width:100%;
}
Code:
<!-- TABLE CODE -->
<TABLE BORDER=0 CELLPADDING=0 CELLSPACING=0
WIDTH="100%" CLASS="brandbar">
<TR WIDTH="100%" BGCOLOR="white">
<TD BGCOLOR="White">
<IMG SRC="images/template/HFTlogo.gif" WIDTH="225"
HEIGHT="78" BORDER="0"></TD>
<TD ALIGN="right" BGCOLOR="White">
<P CLASS="brandbar">
<A HREF="[URL unfurl="true"]http://www.chft.com/">Home</A>[/URL] |
<A HREF="[URL unfurl="true"]http://www.c.com/">[/URL]
C Home</A></P></TD>
</TR>
<TR BGCOLOR="black">
<TD HEIGHT=1 COLSPAN=2>
<IMG SRC="images/template/spacer.gif"
HEIGHT=1 WIDTH=20></TD>
</TR>
</TABLE>