Posted By

jgiuffrida on 05/06/10


Tagged


Versions (?)

Using jQuery to Create a Fixed Sidebar - CSS - style.css


 / Published in: CSS
 

URL: www.josephgiuffrida.com

  1. ul, li, h1 {
  2. margin: 0;
  3. padding: 0;
  4. }
  5.  
  6. #wrapper {
  7. margin: 400px 0 0 0;
  8. }
  9.  
  10. #left {
  11. width: 220px;
  12. float: left;
  13. }
  14.  
  15. #right {
  16. margin: 0 0 0 220px;
  17. background: gray;
  18. }
  19.  
  20. #leftNav {
  21. background: green;
  22. width: 220px;
  23. }
  24.  
  25. .fixed {
  26. position: fixed;
  27. top: 0;
  28. }

Report this snippet  

You need to login to post a comment.