homepage Welcome to WebmasterWorld Guest from
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member
Visit PubCon.com
Home / Forums Index / Code, Content, and Presentation / HTML
Forum Library, Charter, Moderators: incrediBILL

HTML Forum

Aligning Template to top?
Not sure how

 10:05 am on Jan 28, 2007 (gmt 0)

If you have a look at this image:

<url removed>

You will see there is a gap at the top, between the top of the browser and the template where it's just the bg. Is there anyway to get it so that the top of my template start from the very top and there is no gap?

Thanks for any replies :)

[edited by: encyclo at 12:48 pm (utc) on Jan. 28, 2007]
[edit reason] no screenshots please, see forum charter [/edit]



 10:29 am on Jan 28, 2007 (gmt 0)

Set the top margin of your body element to 0px.

And you might also want to edit your post and remove the link.


 10:39 am on Jan 28, 2007 (gmt 0)


I couldn't find a margin so I added this to the code:

<!-- ImageReady Slices (g2u temp sliced2.psd) -->
<table id="Table_01" width="781" border="0" cellpadding="0" cellspacing="0" margin-top="0">

Was that in the right place? Because it didn't work :P


 10:52 am on Jan 28, 2007 (gmt 0)

You should add it to the body tag:
<body style="margin-top:0px;">

 11:03 am on Jan 28, 2007 (gmt 0)

Thanks a lot :D

It worked.

Global Options:
 top home search open messages active posts  

Home / Forums Index / Code, Content, and Presentation / HTML
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved