[CSS] How to create a non-scrolling column
Moderator: General Moderators
[CSS] How to create a non-scrolling column
Hello.
I want to know how to create a non-scrolling div column on top of the page. It should not scroll even the user scrolls the page.
Example: We have a toolbar in Facebook. Where chat and all are there.
Please help.
Thank you in advance.
I want to know how to create a non-scrolling div column on top of the page. It should not scroll even the user scrolls the page.
Example: We have a toolbar in Facebook. Where chat and all are there.
Please help.
Thank you in advance.
Re: [CSS] How to create a non-scrolling column
Might be a place to use an iframe. http://www.w3schools.com/TAGS/tag_iframe.asp
Re: [CSS] How to create a non-scrolling column
is there any other way? without iframe?
Re: [CSS] How to create a non-scrolling column
You could write a lot of Javascript code to capture whenever the user scrolls and then offset the relative position of the top div, but an iframe would be a lot easier. To see what would be involved, look at http://codepunk.hardwar.org.uk/ajs02.htm.techkid wrote:is there any other way? without iframe?
Re: [CSS] How to create a non-scrolling column
position:fixed If you don't care about IE.
You could also maybe put your header in 1 div, and the rest of the content in the other. Set overflow in the page to hidden, and the overflow in the div to scroll.
You could also maybe put your header in 1 div, and the rest of the content in the other. Set overflow in the page to hidden, and the overflow in the div to scroll.
Real programmers don't comment their code. If it was hard to write, it should be hard to understand.
- daedalus__
- DevNet Resident
- Posts: 1925
- Joined: Thu Feb 09, 2006 4:52 pm
Re: [CSS] How to create a non-scrolling column
IE7+ support fixed positioning.
i wonder how many people really still use IE6?
i wonder how many people really still use IE6?
- stoshrocket
- Forum Newbie
- Posts: 2
- Joined: Wed Jan 20, 2010 10:00 am
Re: [CSS] How to create a non-scrolling column
20.99% still use IE6 as of December 2009, although with the recent security flaw people are being pushed (even by governments in the case of France and Australia) to upgrade from IE6.daedalus__ wrote:IE7+ support fixed positioning.
i wonder how many people really still use IE6?
Until this figure drops, I'd stick with iframes. Or just disable the element to IE6 users using an if statement in your CSS, displaying an "please upgrade" comment instead, but that's not very user friendly
EDIT: Changed user share from W3 statistics to Wikipedia average broswer share statictics (reference: W3 statictics, Multiple Sets of Data Collected on Wikipedia.)
- daedalus__
- DevNet Resident
- Posts: 1925
- Joined: Thu Feb 09, 2006 4:52 pm
Re: [CSS] How to create a non-scrolling column
well if microsoft can ignore what mozilla users say when they have 20% i can feel okay about ignoring the 20% that still use IE6. usually the way i handle it is by displaying very large red letters saying that they should stop using ie6 immediately
haha, really though. that figure should drop as more and more people adopt windows 7 this year. i hope...
EDIT:
http://en.wikipedia.org/wiki/Internet_E ... #Criticism
HAHA AWESOME
im putting that on my website TODAY!
haha, really though. that figure should drop as more and more people adopt windows 7 this year. i hope...
EDIT:
http://en.wikipedia.org/wiki/Internet_E ... #Criticism
HAHA AWESOME
im putting that on my website TODAY!