| We hope you enjoy your visit. You're currently viewing our forum as a guest. This means you are limited to certain areas of the board and there are some features you can't use. If you join our community, you'll be able to access member-only sections, and use many member-only features such as customizing your profile, sending personal messages, and voting in polls. Registration is simple, fast, and completely free. Join our community! If you're already a member please log in to your account to access all of our features: |
| #sidebar position:fixed at certain scrolling | |
|---|---|
| Tweet Topic Started: Aug 7 2014, 10:03 AM (459 Views) | |
| Ferby | Aug 7 2014, 10:03 AM Post #1 |
![]()
Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
So I'm working on my own theme for The Nerd Domain and I've gotten myself stuck. Here's a diagram I made that represents the theme![]() My aim is to have the sidebar as it is in the diagram but once it reaches the top of the window (when the user scrolls down), it changes to `position:fixed` and changes `margin-top:0`. I've looked at a tutorial online to this and learned that `position:absolute` may be useful but I have honestly no clue how to do this so any help would be useful. If you need a bit more detail on what I mean because you don't understand that please do ask ![]() Any help would be appreciated. |
![]() |
|
| Ferby | Aug 11 2014, 11:49 AM Post #2 |
![]()
Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
You may remove this now. The people at Stack Overflow helped me and I managed to create this...
|
![]() |
|
| 1 user reading this topic (1 Guest and 0 Anonymous) | |
| « Previous Topic · ZetaBoards - Theme & Code Support · Next Topic » |






![]](http://z1.ifrm.com/static/1/pip_r.png)





10:08 AM Jul 11