Forum Moderators: open
<body>
<div class="main">
Content
</div>
In your css...
div.main{position:absolute;top:0px;left:0px;width:750px;}
Since I work with absolute positioning of elements, this has worked great for me. Not sure how it stands up against relative positioned elements.
> <body marginwidth="0" marginheight="0" leftmargin="0" rightmargin="0" bottommargin="0" topmargin="0">
Won't validate.
[edited by: pageoneresults at 11:33 pm (utc) on Sep. 20, 2002]
Non-valid body tag for Netscape 4
<body leftmargin=0 topmargin=0 marginheight=0 marginwidth=0>
....replaced by......
Valid CSS code - works in Netscape 4
body {
position:absolute;
top:0px;
left:0px;
margin:0px;
padding:0px;
}
I never put absolute positioning together with zero padding and margin before. It works!
[edited by: tedster at 2:29 am (utc) on Sep. 21, 2002]
I think if you take a closer look at the way the CSS works you'll notice it does a better job of removing the right margin in Netscape 4 than <body marginwidth="0" marginheight="0"> does. The right margin can't be fully removed in Netscape 4 although the CSS does make it more narrow. It's more noticable if you use a body background color for testing purposes.
As far as your graphic goes I can't duplicate the effect. What browser are you using and how are you positioning the image/table?
<BODY>
<TABLE CELLPADDING="0" CELLSPACING="0" WIDTH="100%" BORDER="0" ALIGN="center">
This is the beginning of the table. The bottom row appears below. The last background graphic disappears when I include "position: absolute" in the CSS. When I exclude the statement the graphic reappears. Strange huh?
<TR VALIGN="top">
<TD WIDTH="237" CLASS="bg51" HEIGHT="68"> </TD>
<TD WIDTH="50%" CLASS="bg52" HEIGHT="68"> </TD>
<TD WIDTH="475" CLASS="bg53" HEIGHT="68">
<P ALIGN="center" STYLE="margin-top: 32px">
<IMG SRC="copyright.gif" ALT="Copyright 2002 Company and its licensors. All rights reserved." width="361" height="13"></P></TD>
<TD WIDTH="50%" CLASS="bg54" HEIGHT="68"> </TD>
<TD WIDTH="33" CLASS="bg55" HEIGHT="68"> </TD>
</TR>
</TABLE>
</BODY>
</HTML>
The margin set for my copyright notice is necessary since it "floats" over the background image which consists of three horizontal bands (the middle band is white so the copyright notice shows up best here.)
Thanks for commenting!
Mona
[edited by: tedster at 4:14 am (utc) on Sep. 22, 2002]
I tried your suggestion but no luck. Also, I checked a few of the other pages on the site and noticed that some of my CSS settings failed to render the correct font settings. On one page the entire bottom row of background graphics disappeared.
Is there a way to share my temporary URL so you can take a look at my site?
Thanks,
Mona
Add this to your CSS:
#copyright {
position: relative;
top: 32px;
}
Then make the following replacement:
<TD WIDTH="475" class="bg53" HEIGHT="68"><div align="center" id="copyright"><IMG SRC=
"copyright.gif" ALT="Copyright 2002 Company and its licensors. All rights reserved." width="361" height="13"></div></TD>
[edited by: tedster at 3:19 am (utc) on Sep. 24, 2002]
[edit reason] remove company name [/edit]
I made the changes - problem fixed! Thank you very much for taking the time to look at my pages.
It appears I still have one more problem with my FAQ page. I have isolated it to the 3rd row, middle cell. I have a table with my bullets in one column and my questions in the second column. If I delete the Text Align="left" statement then the missing images return. I tried doing a DIV Align="left" and the graphics come back but my text won't left align! Any suggestions?
Thank you again!
Mona