Old 14-04-2008, 11:02   #1 (permalink)
88mph
Great Scott!!
 
88mph's Avatar
 
Join Date: Feb 2008
Posts: 223
overlapping content

Mild Fuzz - The slightly defocused world of John Farrow

I have a problem

Code:
#main_window{ margin: 0 auto; margin-bottom: 0; padding-bottom: 0; position: relative; top: 50px; width: 95%; }

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?
  Reply With Quote
Old 14-04-2008, 13:37   #2 (permalink)
88mph
Great Scott!!
 
88mph's Avatar
 
Join Date: Feb 2008
Posts: 223
any ideas? really bugging me, many a google search does not a solution bring
  Reply With Quote
Old 14-04-2008, 14:31   #3 (permalink)
pgo
Senior Member
 
Join Date: Jan 2005
Posts: 12,358
Positioning takes elements out of the document flow. They will automatically overlap anything after them in the markup.
  Reply With Quote
Old 14-04-2008, 15:03   #4 (permalink)
88mph
Great Scott!!
 
88mph's Avatar
 
Join Date: Feb 2008
Posts: 223
so, in short, no work around apart from restructuring to avoid positioning?
  Reply With Quote
Old 14-04-2008, 15:11   #5 (permalink)
88mph
Great Scott!!
 
88mph's Avatar
 
Join Date: Feb 2008
Posts: 223
what i don't really get is how the CSS stays in tact for so long, then loses it at the end.
  Reply With Quote
Old 14-04-2008, 16:06   #6 (permalink)
LukeV
Best custom title ever.
 
LukeV's Avatar
 
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%;

}
  Reply With Quote
Old 14-04-2008, 16:35   #7 (permalink)
agentxcell
Registered User
 
agentxcell's Avatar
 
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.
  Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search


Contact Us - Web Design Forums - Archive - Top
Search Engine Optimization by vBSEO 3.0.0 RC8