Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Page alignment issue 2

Status
Not open for further replies.

jisoo22

Programmer
Apr 30, 2001
277
US
Hello all,

I have a page that uses div tags (with tables in them). Even though I have my body tags' leftmargin and topmargin set to 0, the page still doesn't align with the upper left-hand corner (there's still a which space around the page). Does anyone know if there are similar attributes for div tags? I think that might be the issue.

Thanks,
Jisoo22
 
use css:

<style type=&quot;text/css&quot;>
body {
padding:0px;
margin:0px;
}
</style>


=========================================================
try { succeed(); } catch(E) { tryAgain(); }
-jeff
 
try:
Code:
<DIV style=&quot;margin:0px&quot;>

The DIV tag makes spaces even when you have your body margin set to 0. The best solution is probably not to use the DIV tags. I also don't use them when I need the page to have no spaces around.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top