Wordpress Themes - WP Forum at BFA

Wordpress Themes - WP Forum at BFA (http://forum.bytesforall.com/index.php)
-   Sidebars & Widgets (http://forum.bytesforall.com/forumdisplay.php?f=14)
-   -   [SOLVED] How to 'FIX' the sidebar so it doesn't scroll? (http://forum.bytesforall.com/showthread.php?t=7954)

Craig Atkinson Jul 4, 2010 11:27 PM

[SOLVED] How to 'FIX' the sidebar so it doesn't scroll?
 
Sorry if this is an old Q. I couldn't see it anywhere and my previous Q must have been badly worded as no one answered!

http://www.craigatkinson.co.uk

How do I 'fix' the sidebar so only the main column scrolls. I want the sidebar to remain static.

lmilesw Jul 5, 2010 09:52 AM

I think that has been answered in the forums somewhere. I would try a search.

Craig Atkinson Jul 5, 2010 01:12 PM

Yes I guessed it would have been. I did search and have just done so again but I can't find the answer, hence this post.

lmilesw Jul 5, 2010 01:21 PM

Sorry... What I saw was this thread about having the header area fixed. Not the sidebars.

juggledad Jul 5, 2010 06:39 PM

I don't believe you can. The sidebars and the center area are cells in the same row of a table. You can't fix one cell and scroll the others.

BluffCityComm Mar 31, 2013 08:12 AM

I have tried implementing fixed sidebar content (WP custom menu widget) on my site as well (http://monumentpress.com/we-work-wit...s/consultants/). The page looks and works great…until I resize the browser window, at which point the middle container moves on top of this content.
Basically, I just want my sidebar menu to stay put in its current position on the page, and not scroll up with the rest of the page content, but I don't want the middle content to overlap it when the screen resizes. Am I going about this wrong?

lmilesw Mar 31, 2013 12:39 PM

How did you implement the fixed menu? What code and where did you put it?

BluffCityComm Apr 1, 2013 11:22 AM

I couldn't figure out how to style the entire custom menu container, so I had to set both the menu title and the menu itself separately, as shown in the code below. Then I had to specify top and left pixel coordinates to position each on the page.
Code:

div#nav_menu-3 h3 {
position: fixed;
top: 185px;
left: 294px;
padding: 0;
margin: 0;
}
div.menu-services-container {
position: fixed;
top: 200px;
left: 200px;
}


BluffCityComm Apr 2, 2013 10:26 AM

UPDATE: I was able to resolve this issue by fixing the position of the entire td#left. Everything now behaves as it should when the browser window is resized. The caveat is, since I had to give the left margin of this cell a negative value, it runs off the left side of the screen when viewed on a mobile device.


All times are GMT -6. The time now is 05:37 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.