Nav position:fixed in right of the div - HTML CSS CSS Layout

HTML CSS examples for CSS Layout:Fixed Position

Description

Nav position:fixed in right of the div

Demo Code

ResultView the demo in separate window

<html lang="en">
 <head></head> 
 <body translate="no"> 
  <div style="position:relative; width:800px; height:2000px; margin:0 auto; border:2px dotted #000;"> 
   <nav style="position:absolute; right:0;"> 
    <ul> 
     <li>Lorem</li> 
     <li>Lorem</li> 
     <li>Lorem</li> 
     <li>Lorem</li> 
    </ul> <!--from   w w w  .  ja v a 2 s  . com-->
   </nav> 
  </div>  
 </body>
</html>

Related Tutorials