Pastebin is 300% more awesome when you are logged in. Sign Up, it's FREE!
Guest

CSS: Fixed or Float Layout

By: a guest on Feb 28th, 2012  |  syntax: None  |  size: 0.27 KB  |  hits: 45  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. <div id="page">
  2.   <div id="masthead">...</div>
  3.   <div id="navigation">...</div>
  4.   ...
  5. </div>
  6.        
  7. #page {
  8.   max-width: 1600px;
  9.   min-width: 800px;
  10.   width: 80%;
  11. }
  12.  
  13. #masthead {
  14.   background: url('path/to/image.jpg') no-repeat left top;
  15.   height: 100px;
  16.   width: auto;
  17. }