Hello,
You know that when you use simple table layout on your website, table situated not at the very top left corner, but has margin about 5-10 pixels.
I wonder how to create table layout which will start at the top left corner without any spaces?
Printable View
Hello,
You know that when you use simple table layout on your website, table situated not at the very top left corner, but has margin about 5-10 pixels.
I wonder how to create table layout which will start at the top left corner without any spaces?
You could use CSS to remove the margins for the table and the padding for what contains the table. If all you have is a body and table for your site, you can set body margin and padding to zero and see if that does what you want.
Before you design your site using tables, you should read http://www.webaim.org/techniques/tables/ to help you make sure you want to use tables and if so, how to do that.
This is most likely cause by the default margin or padding on the body element.
Set all margins and paddings involved to zero to remove it:
Code CSS:html, body, table {margin:0; padding:0}