473,396 Members | 1,871 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Position a fixed div outside of view of browser height.

Hello,

I would like to make a div become fixed so that the top margin is 1000px;
Basically i want the div to start scrolling to the page once you have scrolled down to the top of the div, and then it starts following the scoller and sticks to the top.

However, when I set the top margin to 1000px the div disappears because it is greater than the browser height.

Does any one have suggestions how I can get around this problem.

This is the CSS that I am using

Expand|Select|Wrap|Line Numbers
  1.     .menuright{
  2.         width: 200px;
  3.         float:right;
  4.         position:fixed;
  5.         top: 1000px;
  6.  
  7.         background-color:#FF0;
  8.         height: 200px;
  9.  
  10.     }
Apr 9 '10 #1
1 2684
i am sorry mate...

the only thing that i believe will work is if you change the position of the 1000px
to something else smaller...

cya mate...
MusoFreak200
Apr 16 '10 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

7
by: Doc | last post by:
I've read in a couple of different places including the archives of this forum that html doesn't allow you to precisely dictate the position of an image, but I found this command (again in the...
7
by: Erik Sandblom | last post by:
Hello I'm trying to make some tooltips which are position:fixed. It works fine in Opera and Safari/Konqueror, but in Firefox and Camino (ie Mozilla), it takes a few seconds for each tooltip to...
12
by: news | last post by:
I'm having a heck of a time, and I'm hoping someone can take a quick look and see if they can recognize what might be the problem and point me the right direction. My blog page:...
19
by: derelicten | last post by:
hello , I have an issue positionating some pics I want to anchor to an existing table cell but I cant just place regular position on the cell because the background is fixed height and the set of...
2
by: rockdale.green | last post by:
Hi, I do not know where should I start to solve this problem. I have a calendar inside a div on my webpage which will show /hide when user click a button. but the button is almost at the...
5
by: Robert | last post by:
Hi, I am currently trying to do some Javascript sizing and positioning using Javascript and encounter some for me unexpected behaviour in IE6, yet works fine in Firefox and Opera. I have a...
4
by: john | last post by:
Hi to All, I am new to html authoring, so sorry if my terminology is not correct or exact. I would like to position a footer div to the bottom of the browser window. As I research in the web...
5
by: vunet.us | last post by:
I have no perfect cross-browser solution to position html element on the bottom of the page. I know that with Firefox I do it as: position:fixed; bottom:0px; However, IE does not understand that....
1
by: Roger | last post by:
While there are several web sites that make use of sidebars, there are relatively few that make use of fixed position sidebars. While fixed position sidebars offer the advantage of having the page...
5
by: malik.mayank | last post by:
I am new to CSS and I want to have a fixed width web page that covers the entire area on the browser window. Something like http://maps.google.com I want the height to be equal to browser...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.