I have a page with the container in a table I need to align it to the topmost of the page, but there is a gap. Also need to center the page horizontally.
I tried
body {
margin:0px;
padding:0px;
}
I have a page with the container in a table I need to align it to the topmost of the page, but there is a gap. Also need to center the page horizontally.
I tried
body {
margin:0px;
padding:0px;
}
Try:
html, body {
border: 0px;
margin: 0px;
padding: 0px;
}
table {
margin: 0px auto;
}
This might work.
* {margin:0; padding:0;}
table#idName {
margin:auto;
}
what is the first child element of the div? Have you zeroed the top margin on that element (or given the div a small top padding or border)?