| Home | Register | FAQ | Members List | Search | Today's Posts | Mark Forums Read |
|
|
#1 (permalink) |
|
Great Scott!!
Join Date: Feb 2008
Posts: 223
|
overlapping content
Mild Fuzz - The slightly defocused world of John Farrow I have a problem Code:
i need to use the top:; style to bring the content beneath the logo, otherwise it hides, but as you see if you scroll down, it overlaps the base of the window!! is there a workaround i am missing? |
|
|
|
|
|
#6 (permalink) |
|
Best custom title ever.
Join Date: Apr 2008
Posts: 229
|
Ok why do you have two margin styles set? margin: 0 auto; and margin-bottom: 0? 2nd off. Don;t use position relative. Give your content div a margin-top, this will push it down away from the low. Also give it margin-bottom so it doesn't touch the footer So: #main_window{ margin-top: 50px; margin-bottom: 20px; padding-bottom: 0; <--- not sure why you need this. width: 95%; } |
|
|
|
#7 (permalink) |
|
Registered User
Join Date: Nov 2007
Posts: 97
|
Not sure if this helps much but I just had a similar problem. I took the content div and container div I had and instead of positioning them I adjusted the respective margins so that they are placed in the right position. Although after adjusting the margin and padding I had another problem, which is basically what you are having. I had to fix it by making sure that the Document flow was correct with the ( not sure if I am saying this right; someone correct me if I am wrong) parent child relationships between the divs. I would make sure that it is marked up in the correct hierarchy. Hope that helps. |
|
![]() |