Position a fixed div outside of view of browser height.

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • sharasyn
    New Member
    • Apr 2010
    • 1

    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

    Code:
    	.menuright{
    		width: 200px;
    		float:right;
    		position:fixed;
    		top: 1000px;
    		
    		background-color:#FF0;
    		height: 200px;
    	
    	}
  • MusoFreak200
    New Member
    • Oct 2009
    • 96

    #2
    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

    Comment

    Working...