Skip to content
  • home
  • portfolio
  • web design journal
  • blog
    • adventure
    • san diego
    • projects
    • website design
Blog Web Dev Fixed Column on Left, Fluid Column on the Right

Fixed Column on Left, Fluid Column on the Right

By Forrest Smith - Drempd.com

A two-column setup, with a fixed width column on the left, and a fluid main column that fills out the rest of the space on the left:

<head> 
   <style> 
      .clear{ 
         clear: both; 
       } 
      .col-secondary{ 
         float: left; 
         width: 190px; 
         background: blue; 
         min-height: 100px; 
      } 
      .col-main{	 
         margin-left: 200px; 
         box-sizing: border-box; 
         background: green; 
         min-height: 200px; 
      } 
   </style> 
</head> 

<body> 
   <div class="col-secondary">
       Left column - fixed width
   </div> 
   <div class="col-main"> 
       Main column - fills the remaining space
   </div> 
   <div class="clear"></div> 
</body>
Posted on December 21, 2013August 26, 2022 in Web Dev
  • Adventure

    • adventure
    • gravelgrinding
    • hiking
    • running
  • The Built Environment

    • architecture
    • urbanity
  • Locations

    • san diego
    • portland
  • Freelance Life

    • freelancing
    • productivity
  • Web Dev

    • css
    • entrepreneurship
    • git
    • handlebars
    • html
    • inkscape
    • photoshop
    • php
    • sass
    • web design
    • web development
    • saphire

drempd | san diego, ca


home contact

adventures san diego urbanity and architecture projects stream website design

portfolio resume san diego web design freelance web designer

custom web design responsive web design website maintenance