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)
-   -   Fixed AND floating sidebar at the same time (http://forum.bytesforall.com/showthread.php?t=18969)

OsmanSafdar Nov 26, 2012 03:32 AM

Fixed AND floating sidebar at the same time
 
Hello!

How can I make the sidebar fixed as well as floating?

Its easy to make it fixed using this code: position: fixed;

But the it gets fixed such that it doesn't scroll down below the browser.. right?

I want to achieve something similar to the sidebars in here: http://9gag.com/

They scroll till the end of the sidebar and then gets fixed..

Is there any way i can do that in Atahualpa?!

Thanks!

juggledad Nov 26, 2012 03:42 AM

Ou should examine the source of the page at that site to see how they do it.

OsmanSafdar Nov 26, 2012 03:51 AM

Ok thanks.

Can you plz suggest me any css code to achieve this effect? I tried to play with position:fixed and bottom:-50px etc but couldn't do it. position:fixed; fixes the sidebar along the length of browser only.... i want it to fixe the entire sidebar so that when someone scrolls down, the sidebar remains there on the browser. Any ideas would be appreciated.

juggledad Nov 26, 2012 06:04 AM

you would have to have a jscript the would know when the last sidebar item showed and then change it to a fixed position


All times are GMT -6. The time now is 12:15 PM.

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