Hello all,
I have been trying to design a website with tables, but I am having trouble getting the table(s) flush with the left side of the web-page/browser. Any ideals how to overcome this problem? Thanks for your time.
Luke![]()
| SitePoint Sponsor |
Hello all,
I have been trying to design a website with tables, but I am having trouble getting the table(s) flush with the left side of the web-page/browser. Any ideals how to overcome this problem? Thanks for your time.
Luke![]()


In your body tag include the following:
topmargin=0 marginwidth=0 leftmargin=0 marginheight=0
so it should look like
<body topmargin=0 marginwidth=0 leftmargin=0 marginheight=0>
Hi kycomputing:
I saw your intro message, I'm fairly new here too.
To get that table flush, you'll have to set your body margins to zero.
I use a total overkill tag that zeros the margins on almost all versions of browsers:
<body leftmargin="0" rightmargin="0" topmargin="0" botmargin="0" marginwidth="0" marginheight="0">
I know there's redundancy in there, but that's how I get it to work consistently. You can also change the body and other tags using stylesheets, which I'm becoming a big fan of, but that's another story.
Thanks for the help, it was greatly appreciated.
Learning something new every day.
Luke





I wouldn't use tables for layouts, much less use non-standard attributes in my BODY tag. The least you could do would be to use CSS to control the page's margins.
Code:body { margin: 0; padding: 0; }
matt, do you know of a website that has a good tutorial on creating/using CSS for that purpose? Thanks.





Originally posted by kycomputing
matt, do you know of a website that has a good tutorial on creating/using CSS for that purpose? Thanks.
Hi there
Im not Matt, but heres a couple of excellent beginner tutorials, right here at sitepoint:
http://www.webmasterbase.com/article/309
http://www.webmasterbase.com/article/43
Happy reading![]()
Thanks for the links![]()
Only in NN4 will you have issues with tables, As someone suggested you can use a div or css.
But do noy use any of the following tags leftmargin="0" rightmargin="0" topmargin="0" botmargin="0" marginwidth="0" marginheight="0".
They are not standard and thus your site will not be compliant.
Bookmarks