Link to home
Start Free TrialLog in
Avatar of Robert Granlund
Robert GranlundFlag for United States of America

asked on

CSS fixed positions

I have asked this question before but the answer did not hold up.

I have a menu on the left side of my website that has a fixed position.  So, no matter how far I scroll up or down the page, the menu is always in the same place on the left side of page.  However, If I change the size of my screen and scroll horizontally,  it will begin to overlap the content of the page. it slides under the other content.

Is there a way to keep a div fixed vertically but not fixed horizontally so it can move with the entire page as you scroll right and left?
Avatar of LZ1
LZ1
Flag of United States of America image

Unfortunately not really. Not with pure CSS anyways. You may need a custom Javascript solution.
Avatar of Robert Granlund

ASKER

@LZ1  like what?  any clues that can put me in the correct direction?
I've been looking, but haven't seen any type of solution.  Let me make sure I have the right thing in mind though. Your talking about having a fixed div on the left hand side. The everything else on the right. When a user has to scroll horizontally though, it should move as if it's part of the page?

What about something like framesets? http://www.w3schools.com/tags/tag_frameset.asp
@LZ1  Yes that is correct but the frameset is not a good choice at this point.
Understandable. I wouldn't want to use it either honestly.  

Have you seen any place this is done before? We may be able to take a sneak peek at their code to see how it can be done.
ASKER CERTIFIED SOLUTION
Avatar of LZ1
LZ1
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial