View Single Post
Old 03-14-2013, 05:41 PM   PM User | #2
sunfighter
Senior Coder

 
Join Date: Jan 2011
Location: Missouri
Posts: 2,383
Thanks: 18
Thanked 350 Times in 349 Posts
sunfighter is on a distinguished road
Using position: fixed; is correct, but it is better to place the fixed object using top/bottom and left/right selectors.
Your margin-left:850px; really makes a lot of empty space if it was followed.
Try this (I have commented out what you don't need):
Code:
.sidenav{
	//margin-top:10px;
	//margin-right:10px;
	//margin-left:850px;
	//float:right;
	position: fixed;
	top: 10px;
	right: 10px;
	width:175px;
....
sunfighter is offline   Reply With Quote
Users who have thanked sunfighter for this post:
matz0rz (03-14-2013)