Wordpress Themes - WP Forum at BFA
There will be no more development for Atahualpa (or any other theme), and no support. Also no new registrations. I turned off the donation system. I may turn the forum to read only if it gets abused for spam. Unfortunately I have no time for the forum or the themes. Thanks a lot to the people who helped in all these years, especially Larry and of course: Paul. Take care and stay healthy -- Flynn, Atahualpa developer, Sep 2021

Wordpress Themes - WP Forum at BFA » WordPress Themes » Atahualpa 3 Wordpress theme » Sidebars & Widgets »

Fixed AND floating sidebar at the same time


  #1  
Old Nov 26, 2012, 02:32 AM
OsmanSafdar
 
9 posts · Sep 2012
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!
  #2  
Old Nov 26, 2012, 02:42 AM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
Ou should examine the source of the page at that site to see how they do it.
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #3  
Old Nov 26, 2012, 02:51 AM
OsmanSafdar
 
9 posts · Sep 2012
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.
  #4  
Old Nov 26, 2012, 05:04 AM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
you would have to have a jscript the would know when the last sidebar item showed and then change it to a fixed position
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support

Bookmarks

Tags
fixed, floating, position, sidebar

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Sidebar position:fixed aygart Sidebars & Widgets 19 Mar 14, 2012 04:56 PM
Fixed Position Layout with fixed center column? 49Monsters Center area post/pages 1 Nov 3, 2010 02:41 PM
How to make Fixed Sidebar Height alauna Sidebars & Widgets 3 May 17, 2010 04:05 PM


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


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