Welcome to WebmasterWorld Guest from 54.147.63.124

Forum Moderators: incrediBILL

Message Too Old, No Replies

Aligning Template to top?

Not sure how

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

Junior Member

5+ Year Member

joined:Jan 28, 2007
posts:113
votes: 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)

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:July 22, 2002
posts:1782
votes: 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)

Junior Member

5+ Year Member

joined:Jan 28, 2007
posts:113
votes: 0


Thanks.

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)

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:July 22, 2002
posts:1782
votes: 0


You should add it to the body tag:
<body style="margin-top:0px;">
11:03 am on Jan 28, 2007 (gmt 0)

Junior Member

5+ Year Member

joined:Jan 28, 2007
posts:113
votes: 0


Thanks a lot :D

It worked.

 

Join The Conversation

Moderators and Top Contributors

Hot Threads This Week

Featured Threads

Free SEO Tools

Hire Expert Members