View Single Post
Old 03-14-2013, 05:52 PM   PM User | #3
matz0rz
New Coder

 
Join Date: Oct 2011
Posts: 34
Thanks: 24
Thanked 0 Times in 0 Posts
matz0rz is an unknown quantity at this point
Quote:
Originally Posted by sunfighter View Post
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;
....
Thanks it's a little better but it still isn't perfect when I minimize. Is it possible to make a ".SideNavContainer" and have it stay fixed inside that container? I even got my teacher trying to figure it out at the moment.

Last edited by matz0rz; 03-14-2013 at 05:54 PM..
matz0rz is offline   Reply With Quote