Help get this topic noticed by sharing it on Twitter, Facebook, or email.

fluid grid template

I am trying to follow the example in your book on fluid grid layouts. When I enter the first div for the header it works fine. However when I create the next div (I am careful to stay within the gridContainer clearfix but everytime it displays the following text:

@charset "utf-8"; /* Simple fluid media Note: Fluid media requires that you remove the media's height and width attributes from the HTML http://www.alistapart.com/articles/fl... */ img, object, embed, video { max-width: 100%; } /* IE 6 does not support max-width so default to width 100% */ .ie6 img { width:100%; } /* Dreamweaver Fluid Grid Properties ---------------------------------- dw-num-cols-mobile: 3; dw-num-cols-tablet: 8; dw-num-cols-desktop: 12; dw-gutter-percentage: 25; Inspiration from "Responsive Web Design" by Ethan Marcotte http://www.alistapart.com/articles/re... and Golden Grid System by Joni Korpi http://goldengridsystem.com/ */ /* Mobile Layout: 480px and below. */ .gridContainer { margin-left: auto; margin-right: auto; width: 93.3333%; padding-left: 3.3333%; padding-right: 3.3333%; } #header { clear: both; float: left; margin-left: 0; width: 100%; display: block; } #sidebar { clear: both; float: left; margin-left: 0; width: 100%; display: block; } /* Tablet Layout: 481px to 768px. Inherits styles from: Mobile Layout. */ @media only screen and (min-width: 481px) { .gridContainer { width: 97.5%; padding-left: 1.25%; padding-right: 1.25%; } #header { clear: both; float: left; margin-left: 0; width: 100%; display: block; } #sidebar { clear: both; float: left; margin-left: 0; width: 100%; display: block; } } /* Desktop Layout: 769px to a max of 1232px. Inherits styles from: Mobile Layout and Tablet Layout. */ @media only screen and (min-width: 769px) { .gridContainer { width: 98.3333%; max-width: 1232px; padding-left: 0.8333%; padding-right: 0.8333%; margin: auto; } #header { clear: both; float: left; margin-left: 0; width: 100%; display: block; } #sidebar { clear: both; float: left; margin-left: 0; width: 100%; display: block; } }

It doesn't update the css file in fact it blanks css styles window. What am I doing wrong?
1 person has
this question
+1
Reply