djh101
08-30-2010, 02:26 AM
I have a header div (160px tall, 1024px wide), a header background image (same dimensions with 7px border on all sides and a 4px border going through the center at 114px to separate the top from navigation), and three internal divs (logo, ads, navigation). Logo and ads are on top, floating left and right against each other, with navigation below them. I need to position navigation so that it is perfectly aligned with the background image.
1. Are margins counted in width? I have 7px top margins on logo and ads to account for the 7px background border, so when I define their height, should it be 114px or 107px?
2. Does padding affect the width? I have logo and ad width in percentage, but to get them both on the same row I can only use 96%.
3. Why isn't clear working? I have clear: both on the navigation but it seems like it's trying to clear header (the div that it is contained in).
URL is http://stupidgamestuff.com/index2.php.
1. Are margins counted in width? I have 7px top margins on logo and ads to account for the 7px background border, so when I define their height, should it be 114px or 107px?
2. Does padding affect the width? I have logo and ad width in percentage, but to get them both on the same row I can only use 96%.
3. Why isn't clear working? I have clear: both on the navigation but it seems like it's trying to clear header (the div that it is contained in).
URL is http://stupidgamestuff.com/index2.php.