Jump to content
xisto Community
Sign in to follow this  
Nickeh

Need HTML Positioning Help

Recommended Posts

I need some help

When I'm centering my site with tables I can't get it to line up with the top.

 

Posted Image

 

If I'm understanding you correctly, you want to remove the space at the top of your webpage.

 

This is caused by your HTML editor. You are probably using some type of wysiwyg html editor like the Netscape Composer editor. One of the many drawbacks to these types of editors is that they add junk to the code that you don't want or need.

 

Look at the source of your code:

There is probably a non-breaking space added right before your table:

<body ... >

<table ... >

 

There may even be a line break inserted:

<body ... >
<br>
<table ... >

 

You just need to remove the extra code:

<body ... >
<table ... >

 

 

If all else fails, you can manually set the top margin to zero in the body tag:

<body top-margin="0">
<table ... >

 

Hope this helps. B)

 

vujsa

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.