html - Align fixed navigation-div to the right outer div -
html - Align fixed navigation-div to the right outer div -
the navigation bar sticks left of container-div. want stick right. tried several things none of them worked. here barebones code. how can navigation bar sticks right side, ending container-div ends?
ps: has fixed because want navigation remain @ top of browser window, no matter how much user scrolls down.
#container {     margin: 0 auto;     width: 820px; }  #navigation {     position: fixed;     z-index: 10000;     display:block; }       
ok, had guess @ html code , build you: http://jsfiddle.net/vdl6b/
from can imagine you're trying achieve, it's possible 1 of 2 solutions:
removingposition:fixed; , adding float: right; navigation css. adding right: 0; define position.   i chose latter. here's example using first.
 html css 
 
Comments
Post a Comment