| Home | Register | FAQ | Members List | Search | Today's Posts | Mark Forums Read |
|
|
#1 (permalink) |
|
Professional Idiot
Join Date: Aug 2006
Location: Uk
Posts: 59
|
CSS Positioning help
I just started the basic structure for a template and ran into a little problem. I positioned #content -130px relative so it over laps with #feat. This works fine but it leaves a 130px gap below it. How can i eliminate this gap? All the CSS and XHTML is in this page: http://nicholas-roberts.co.uk/ee_testing/index.html |
|
|
|
|
|
#2 (permalink) |
|
SkyRocket Design
Join Date: Aug 2005
Location: Chichester
Posts: 536
|
you'll need margin: 0 0 -130px 0 on the #content div - something to do with elements positioned relative taking up space in the flow of a document - like punching a hole in the page. sorry can't describe it better - need caffeine. the margin-bottom: -130px closes the hole back up |
|
|
|
#6 (permalink) |
|
Professional Idiot
Join Date: Aug 2006
Location: Uk
Posts: 59
|
Oops i meant margin.. thats what i have in my code and it still doesn't work: updated:http://nicholas-roberts.co.uk/ee_testing/index.html edit: ok i just fixed it, turns out i needed to add -130px margin to the html{} instead of #content |
|
![]() |