|
|
#1 (permalink) | |
|
Surpass Fan
On a golden path...
Joined in Feb 2006
Lives in Arizona
344 posts
Gave thanks: 3
Thanked 16 times
|
CSS help with margins
OK - new to this whole CSS thing so trying to learn. I built a test site to play around on - interestingtreasures.com Looking at the site, I have a left nav panel and a right main panel positioned absolute, then a footer panel below.
Looking at the footer, I am trying to get a 10px margin at the bottom but it goes to the page bottom. You can view source for the html (simple - no formatting there), and the css is below: Quote:
Edit: oops - lol - looks like I need to float the nav bar - bah......sleep, then fix -- anyway - footer question remains.Thanks,
__________________
"Argue for your limitations, and sure enough, they are yours" Last edited by pizzicar; April 4th, 2006 at 3:36 AM.. |
|
|
|
|
|
|
#2 (permalink) |
|
rocks your socks.
Resident.
Joined in Mar 2004
Lives in fear of Obama.
Hosted on Pass 7
13,170 posts
Gave thanks: 8
Thanked 35 times
|
Your left block doesn't position correctly. I would suggest removing the top and left from the navigation part of the CSS. As for the footer, if I'm understanding correctly than you should change it to padding instead of margin.
|
|
|
|
|
|
#3 (permalink) |
|
Registered User
Seasoned Poster
Joined in Mar 2006
Lives in Canada
Hosted on pass94
88 posts
Gave thanks: 0
Thanked 0 times
|
Yes, I think david is on the ball.
For the footer, forget putting a margin on the bottom if you want to use a wrapper. Instead of doing a margin on the footer element, ad a "padding-bottom: 10px;" to your allcontent element.
__________________
|
|
|
|
|
|
#4 (permalink) |
|
Surpass Fan
On a golden path...
Joined in Feb 2006
Lives in Arizona
344 posts
Gave thanks: 3
Thanked 16 times
|
Thanks all - ya, saw the position error after I uploaded - was playing around trying different positioning methods and now know not to do absolute with fixed
![]() I'll try the padding in all content this evening when I get off work. I was brought up on tables then got out of web stuff for a long time - coming back and learning this stuff is fun (but time consuming )
__________________
"Argue for your limitations, and sure enough, they are yours" |
|
|
|