473,808 Members | 2,761 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Position a fixed div outside of view of browser height.

1 New Member
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 2706
MusoFreak200
96 New Member
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
7992
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 archives of this forum) that apparently allows you to do exactly that. <img src="whateveryourfilelocationis" style="position:absolute; left:Xpx; top:Xpx"> What do you call this command? The responder of the particular message where I found it...
7
2936
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 display, and then to get hidden. If I use position:absolute, the problem goes away, but the tooltips move around with the containing, scrolling div. ..scroll { height: 400px; overflow: auto; }
12
2265
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: http://www.celticbear.com/weblog/ looks fine in Firefox and Opera, but in IE6, the main body block positions itself below the left menu bar. I've W3C validated the XML Schema, HTML, and CSS and fixed a couple of errors and all three now give me a "valid"...
19
60402
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 pics is bigger then fixed space. SO I put them in a position:absolute div and I gave a position:relative to the container td. This seems to work in IE but in Firefox position is relative to the browser window, not the cell. I need a compatible solution...
2
28423
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 bottom of my webpage, I am using position :absolute for the div so everytime when the div shows, it will "drop down" cause the vertical scroll bar appears on web browser and the user have to scroll down to see the whole calendar. I was trying to...
5
1550
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 table with some various elements in it and want it to take into account the current browser viewport size and resize it relative to that. The calculations seem to be working well, but when I assign a height to
4
29397
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 shows this could be done a containing element with "min-height: 100%;" and an absolute positioned element (div) inside, aligned to bottom ("position: absolute; bottom:0px")
5
8928
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. Did anyone come across this issue to share with me? Thanks you
1
2012
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 controls and hyperlinks always visible when the user scrolls down a page, they have one great disadvantage: a portion of the fixed position sidebar may not be visible for some users because of a combination of small vertical height and the...
5
2010
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 window... not 100% How can I accomplish that? Thanks in advance for all the help.
0
9721
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9600
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10633
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10376
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9198
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7651
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6880
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5686
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3860
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.