Top-Left Corner

MarioMaster

New Member
Messages
181
Reaction score
0
Points
0
How do I get this file to have the table up in the corner, but still have the navigation bar and content have the same spacing?
 

Attachments

  • index.html
    2.1 KB · Views: 59

Hazirak

New Member
Messages
197
Reaction score
0
Points
0
The problem is the fact that you set the table's 'cellpadding' attribute to 72 - it sets the padding of each side of each cell. What you want to do is set the padding of one side on each of the cells, and to do this you'll need to use CSS. In the end, you'll probably end up with something like this:
Code:
#navbar {
padding-left: 0px;
padding-right: 72px;
padding-top: 0px;
padding-bottom: 0px;
}
#content {
padding-left: 72px;
padding-right: 0px;
padding-top: 0px;
padding-bottom: 0px;
}
... and then just add 'id="navbar"' and 'id="content' into their appropriate cells.

If you want everything to be in the absolute corner (as in no space at all between the page's edge and the table), you'll also need to add 'margin: 0px;' for the body tag in CSS if you haven't already.
 
Top