heeha Posted August 16, 2015 Share Posted August 16, 2015 I have been trying to stick an element in my website but I didnt find any position called sticky. I was on other forum and they referred me to some application to download that will do the job. Most of them required javascript, which i dont know about. So is there way to stick a div element via css or any method? Quote Link to comment https://forums.phpfreaks.com/topic/297811-stick-an-element/ Share on other sites More sharing options...
maxxd Posted August 17, 2015 Share Posted August 17, 2015 You can use 'position: fixed;' to keep the element where it is, regardless of scroll position. Quote Link to comment https://forums.phpfreaks.com/topic/297811-stick-an-element/#findComment-1519086 Share on other sites More sharing options...
Momentet Posted August 30, 2015 Share Posted August 30, 2015 Try playing arround with the position element, and you will most probably find out how to do a sticky element :-) Quote Link to comment https://forums.phpfreaks.com/topic/297811-stick-an-element/#findComment-1519937 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.