SHARE
TWEET

CSS: Fixed or Float Layout

a guest Feb 28th, 2012 45 Never
  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. }
RAW Paste Data
Top