Solved

Content Stay even while scrolling page.

Posted on 2008-10-29
3
695 Views
Last Modified: 2013-11-19
I have a box that has buttons and possible input area for text.

I need to have this box stay at its current location *even* if the page/browser is being scrolled.

So all the other content is being scrolled this box stay put.

Is there a way to do this... I don't know what to search on.  Everything I search on brings back products about menus staying put while scrolling.

Any one have code or example or pointers to the right search terms to do this?

thanks so much for any help :)

Angela
0
Comment
Question by:angelalaw
3 Comments
 
LVL 16

Accepted Solution

by:
sh0e earned 500 total points
ID: 22837623
Add CSS style: style="position:fixed"
<div style="position:fixed; top:50;left:50;"><img src="http://www.google.com/images/nav_logo3.png"/><b>hello wolrd</b></div>
asdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdf<br/>asdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdf<br/>asdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdf<br/>asdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdf<br/>asdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdf<br/>asdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdf<br/>asdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdf<br/>asdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdf<br/>asdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdf<br/>asdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdf<br/>asdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdf<br/>asdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdf<br/>asdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdf<br/>asdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdf<br/>asdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdf<br/>asdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdf<br/>asdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdf<br/>asdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdf<br/>asdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdf<br/>asdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdf<br/>asdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdf<br/>asdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdf<br/>asdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdf<br/>asdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdf<br/>asdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdf<br/>asdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdf<br/>asdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdf<br/>asdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdf<br/>asdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdf<br/>asdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdf<br/>asdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdf<br/>asdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdf<br/>asdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdf<br/>asdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdf<br/>asdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdf<br/>asdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdf<br/>asdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdf<br/>asdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdf<br/>asdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdf<br/>asdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdf<br/>asdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdf<br/>asdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdf<br/>asdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdf<br/>asdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdf<br/>asdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdf<br/>asdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdf<br/>asdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdf<br/>asdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdf<br/>asdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdf<br/>asdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdf<br/>asdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdf<br/>asdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdf<br/>asdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdf<br/>asdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdf<br/>asdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdf<br/>asdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdf<br/>asdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdf<br/>asdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdf<br/>asdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdf<br/>asdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdf<br/>asdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdf<br/>asdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdf<br/>asdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdf<br/>asdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdf<br/>asdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdf<br/>asdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdf<br/>asdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdf<br/>asdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdf<br/>asdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdf<br/>asdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdf<br/>asdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdf<br/>asdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdf<br/>asdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdf<br/>asdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdf<br/>asdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdf<br/>asdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdf<br/>asdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdf<br/>asdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdf<br/>asdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdf<br/>asdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdf<br/>asdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdf<br/>asdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdf<br/>asdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdf<br/>asdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdf<br/>asdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdf<br/>asdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdf<br/>asdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdf<br/>asdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdf<br/>

Open in new window

0
 
LVL 16

Expert Comment

by:Lolly-Ink
ID: 22837728
Check out the box (and the code behind it) on this page:
http://home.tampabay.rr.com/bmerkey/examples/fake-position-fixed.html
0
 

Author Closing Comment

by:angelalaw
ID: 31511528
Thank you very much :)
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
jQuery Scroll To Top 5 38
HTML Anchor Link Problem 3 35
Character counter breaks after adding EmojiOne Area 4 19
How to control cache of some js files ? 7 39
So you have coded your own WordPress plugin and now you want to allow users to upload images to a folder in the plugin folder rather than the default media location? Follow along and this article will show you how to do just that!
Why do we like using grid based layouts in website design? Let's look at the live examples of websites and compare them to grid based WordPress themes.
In this tutorial viewers will learn how to style elements, such a divs, with a "drop shadow" effect using the CSS box-shadow property Start with a normal styled element, such as a div.: In the element's style, type the box shadow property: "box-shad…
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)

840 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question