ohdang888 Posted August 6, 2010 Share Posted August 6, 2010 I've seen some feedback tabs like the one here: http://www.feedbackify.com how do they get that image to stay put while a user scrolls the page? thanks Quote Link to comment Share on other sites More sharing options...
radar Posted August 7, 2010 Share Posted August 7, 2010 thats actually css to make it stay in place, but it is background-repeat: no-repeat; Quote Link to comment Share on other sites More sharing options...
radar Posted August 7, 2010 Share Posted August 7, 2010 either that, or they do a position: relative; top: 50%; background-repeat: no-repeat; something like that might be more logical depending on the image.. again its all css. Quote Link to comment Share on other sites More sharing options...
AtlasC1 Posted August 11, 2010 Share Posted August 11, 2010 The easiest way to do it is through CSS, using the position property: .fixed { position:fixed; top:30px; right:5px; } This will make anything with the class="fixed" stick to 30px from the top of the browser window, and 5px from the right of the browser window. The div will hover above any other page elements and will not disrupt the natural flow of the website. You could also do this through javascript, to get a smooth, floating appearance. This, however, requires a bit more work. -jm Quote Link to comment 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.