Media query issues in fluid grid layout (take a look at this code)

how to make adjustments in specific device views without screwing everything up in other views. I know in the css designer when I click global it makes changes to all views which is great. But when I click one of the little icons at the button of the screen (like the smartphone icon or tabet etc) the changes I make in the view dont stay in that view but affect all views. So I'm coming to understand ( maybe wrongly) that those icon have no design power other than to show you what thing look like in that view. I'm starting to focus on clicking the stlye sheet dreamweaver cc created (not the boilerplate one) clicking the media query for the screen size I want to adjust and finding the selector I want to tweek (ITS RIGHT HERE THE HICKUP I'M HAVING IS AT - i CANT ADJUST  IMAGES THAT I HAVE SPECIFICALLY IN THE CORRESPONDING VIEW WITHOUT SCREWING EVERYTHING EVERYWHERE UP IN THE OTHER VIEWS) Can anybody invision what I'm trying to do and what happening and give me a fix????
Idealy I would like to simply click the view icon of the screen size I want to tweak and drag handle bars to resize images and the adjustment stay only in that sceen size range, but this is not happening. This why I say that those (may wrongly I might be doing something wrong) icons have no design power other than to give you a view of things. But either way whether I can click icons and rag handle handle bars or in I have to use css designer I cant specifically work in one view without affecting all the others.
Below is css code for media queries that are in my style sheet. It might not be the cleanest bit I want you to focus on two main aspsects of the code
     1) The media queries, particularly the smartphone 480 and below. ( but all media queries if need be)
     2) In the header and in the list iteams I have images. Its these images that I'm trying to resize - but only specific changes in specific views
Take a look:
/* Mobile Layout: 480px and below. */
.gridContainer {
          margin-left: auto;
          margin-right: auto;
          width: 100%;
          padding-left: 0;
          padding-right: 0;
          clear: none;
          float: none;
#div1 {
#mainheader {
          margin-left: 0;
          position: static;
          height: auto;
          width: 100%;
#navbarone {
#navbartwo {
#listiteams {
          color: #FFFFFF;
          text-align: center;
          background-color: #9DC5D3;
#listiteamstwo {
          text-align: center;
          background-color: #9DC5D3;
          color: #FFFFFF;
#navbutton {
width: 100%;
#li1 {
width: 100%;
clear: both;
margin-left: 0;
#li2 {
width: 100%;
clear: both;
margin-left: 0;
#navbuttontwo {
width: 100%;
#li3 {
width: 100%;
clear: both;
margin-left: 0;
#li4 {
          width: 100%;
          clear: both;
          margin-left: 0;
#flads {
.zeroMargin_mobile {
margin-left: 0;
.hide_mobile {
display: none;
/* Tablet Layout: 481px to 768px. Inherits styles from: Mobile Layout. */
@media only screen and (min-width: 481px) {
.gridContainer {
          width: 100%;
          padding-left: 0;
          padding-right: 0;
          clear: none;
          float: none;
          margin-left: auto;
#div1 {
#mainheader {
          position: static;
          height: auto;
          width: 100%;
          margin-left: 0;
#navbarone {
#navbartwo {
#listiteams {
#listiteamstwo {
#navbutton {
width: 32.2033%;
#li1 {
width: 32.2033%;
clear: none;
margin-left: 0;
#li2 {
width: 32.2033%;
clear: none;
margin-left: 0;
#navbuttontwo {
width: 32.2033%;
#li3 {
width: 32.2033%;
clear: none;
margin-left: 0;
#li4 {
width: 32.2033%;
clear: none;
margin-left: 0;
#flads {
.hide_tablet {
display: none;
.zeroMargin_tablet {
margin-left: 0;
/* 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: 100%;
          max-width: 2000px;
          padding-left: 0;
          padding-right: 0;
          margin: auto;
          clear: none;
          float: none;
          margin-left: auto;
#div1 {
#mainheader {
          position: static;
          height: auto;
          width: 100%;
          margin-left: 0;
#navbarone {
#navbartwo {
#listiteams {
#listiteamstwo {
#navbutton {
width: 32.7731%;
#li1 {
width: 32.7731%;
margin-left: 0;
clear: none;
#li2 {
width: 32.7731%;
margin-left: 0;
clear: none;
#navbuttontwo {
width: 32.7731%;
#li3 {
width: 32.7731%;
margin-left: 0;
clear: none;
#li4 {
width: 32.7731%;
margin-left: 0;
clear: none;
#flags {
.zeroMargin_desktop {
margin-left: 0;
.hide_desktop {
display: none;

By default, image height and width are 100% in FluidGrid Layouts.  You'll find it near the top of your CSS code.
@charset "utf-8";
img, object, embed, video {
max-width: 100%;
.ie6 img {
width:100%;
That's so they can re-scale to fit the various layouts.  If you need to assign explicit height & width values to certain elements, you can override that CSS rule by using the height & width attributes in your HTML code like this. 
<img src="some_image.jpg" height="xxx"  width="xxx">
Or, you can give your image a class name and target that class with CSS Media Queries.  For an example, copy & paste this code into a new, blank document.  SaveAs test.hml and preview in browsers at different screen widths.
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>Untitled Document</title>
<style>
/**FLUID GRID DEFAULT**/
img, object, embed, video{
max-width: 100%;
.ie6 img {
width:100%;
/* Special Rules for mobiles */
@media only screen and (max-width: 480px) {
.nav {width:320px; height:74px; }
/* Special Rules for Tablets */
@media only screen and (min-width: 482px) and (max-width: 1024px) {
.nav {width: 480px; height: 148px;}
/* Special Rules for Desktops */
@media only screen and (min-width: 1025px) and (max-width: 1230px) {
.nav {width: 1000px; height: 225px;}
</style>
</head>
<body>
<h3>This image naturally rescales to layout</h3>
<img src="http://placehold.it/1000x225" alt="some description">
<h3>This image has a .nav class &amp; rescales to set media query break points.</h3>
<img class="nav" src="http://placehold.it/1000x225" alt="some description">
</body>
</html>
Does this make sense now?
Nancy O.

Similar Messages

  • Could someone take a look at this code?

    The following code is mean to implement a listener for a text area object and to listen for text being entered:
    abstract class DocChange implements javax.swing.event.DocumentListener
             public void textValueChanged(javax.swing.event.DocumentEvent event)
                   Object object = messageTextArea.getDocument();
                   if (object.toString().length() !=0)
                        txtMessageTextArea_TextValueChanged(event);
    void txtMessageTextArea_TextValueChanged(javax.swing.event.DocumentEvent event)
              toolBar.getComponent(5).setVisible(true);
         }What it's supposed to do is detect when text is typed within it and set the button in question to be visible if text is typed and then invisible
    if the text is removed. (The button has been set to be invisible previously). I am not sure how to implement the document listener for the messageTextArea object. Could anyone tell me how to do that and if they see anything wrong with this approach?
    Thanks a lot.

    when you implement an interface, you must define all of the methods in that interface. That is because all of the methods of the interface are implicitly public and abstract. The reason it told you to declare DocChange as abstract is because if you don't define the methods that you implemented from DocumentListener, which are abstract, then the class that implements the interface must be declared abstract.

  • Media query issues

    Hi,
    After following all procedures of setting up the pages, the folders, etc. I want to INSERT or MODIFY the only one Media Query which is inside a CSS file. I use the one of almost default settings. I just have changed in the phone layout, 6 columns instead of 5.
    When I go to Insert or Modify > Media query, a messagge shows up:
    "The administrator of media query is not compatible with the fluid grid design." (It is translation from the spanish)
    WHat does it mean? I tried updating the software but there are just Action scripts updating, I guess nothing to do with DW and media queries. Any help? I am using Dreamweaver CS6.
    Thx a lot.
    MARIO V.

    In the English version of Dreamweaver CS6, the message you're seeing says "The Media Query Manager is not currently compatible with Fluid Grid Layouts". Selecting Insert > Media Queries opens the Media Query Manager, which creates a site-wide media query file.
    The Fluid Grid Layouts create all the media queries in the main style sheet, whereas a site-wide media query file imports separate style sheets like this:
    /* Desktop */
    @import url("main.css");
    /* Phone */
    @import url("phone.css") only screen and (max-width:480px);
    /* Tablet */
    @import url("tablet.css") only screen and (min-width:481px) and (max-width:768px);
    As the message says, they're not compatible. In fact, the Media Query Manager and site-wide media query files have been removed from Dreamweaver CC. You now control media queries through the @Media pane in the CSS Designer (which is not available in Dreamweaver CS6).
    To insert or modify a media query in a fluid grid layout in Dreamweaver CS6, you need to edit the style sheet manually. It's one of the main drawbacks of the way fluid grid layouts were implemented in CS6.

  • How to convert live website to fluid grid layout

    I have an existing live website. How do I convert it to a fluid grid layout?

    Who is Peter?
    Responsive Web Design
    http://coding.smashingmagazine.com/2011/01/12/guidelines-for-responsive-web-design/
    Introduction to CSS Media Queries
    http://www.adobe.com/devnet/dreamweaver/articles/introducing-media-queries.html
    CS6 Fluid Grid layouts (17 min video)
    http://tv.adobe.com/watch/learn-dreamweaver-cs6/using-fluid-grid-layouts/
    Creative Cloud 12.2 Enhancements to Fluid Grid Layouts
    http://blogs.adobe.com/dreamweaver/2013/02/updated-fluid-grids-in-dreamweaver.html
    Step-by-Step tutorial -- Building Fluid Grid Layouts in DW CS6
    http://www.adobe.com/inspire/2012/08/fluid-grid-layouts-dreamweaver-cs6.html
    If you want to support multiple languages, you'll need to build a mirror site with translations.
    Nancy O.

  • Fluid Grid Layout - IE Issue with Image Size

    Hi,
    I've been working on a new website using the CS6 Fluid Grid Layout. My site is working correctly in Chrome and Firefox but in Internet Explorer 9 and 10, and most likely all other versions, the images that resize normall in Chrome and Firefox stay at maximum size in Internet Explorer. Please could somebody take a look at my site and see where I have gone wrong in the code as I can't find the problem anywhere.
    www.moleseyhire.com/index2.html
    Kind regards,
    Mitchell Ransom

    You could set the <divs> up like:
    <div id="special_1"><img src="http://www.moleseyhire.com/images/offer-1.png" alt="33% Off Shampoo"></div>
      <div id="special_2"><img src="http://www.moleseyhire.com/images/offer-2.png" alt="Multi Hire"></div>
        <div id="special_3"><img src="http://www.moleseyhire.com/images/offer-3.png" alt="Multi Buy"></div>
        <div id="special_4"><img src="http://www.moleseyhire.com/images/offer-4.png" alt="10% Off Tile Cutter Accessories"></div>
    Then add
    #special_1, #special_2, #special_3, #special_4 {
        width: 24%;
        float: left;
        margin-right: 1%;
    To the following media queries:
    @media only screen and (min-width: 769px) and @media only screen and (min-width: 481px)
    and:
    #special_1, #special_2, #special_3, #special_4 {
        width: 49%;
        float: left;
        margin-right: 1%;
    to the following media query:
    /* Mobile Layout: 480px and below. */

  • DW6 fluid grid layout issue: writes to page instead of css file

    Using DW6 (version 12, owned, build 5861) on Windows 7 64 bit.
    Following tutorials and the help files to use the fluid grid layout.
    Start a blank page on a new site, which inserts the starter div and new css file
    Immediately save page, which also generates/saves ancillary files (js and css).
    Remove inner div that's created in order to use my own (have also tried leaving the default one in place and using that)
    Insert new div, within the "gridContainer clearfix" div.
    Place cursor just after that new div, still inside "gridContainer clearfix" and add new "fluid grid layout div tag", new row.
    Following same method, do so again.
    Dreamweaver adds the generated CSS code to the actual page instead of the expected div, visibly (minified)....and everything breaks. It does *not* add the code into the CSS file from there on and the only way to have it display the div (which does not show any visual indicators since the CSS is basically lost that would do so, is to CTRL-Z to undo the last step. It undoes the CSS showing as the only content in the HTML file, and *does* show a div with the name I'd given it. If I copy/paste that generated CSS into the fluid css file *then* CTRL-Z, it looks the way it's supposed to, with drag handles, visible indentations and so on.
    If I then change div widths or position, it does record those changes in the CSS file, so it appears this is only when inserting new divs after the second one that's a problem (third div inside the container is when it starts choking; none overlap).
    This is repeatable, on both desktop and laptop, running the same version. I've tried saving after every div insertion, only saving at the start, code view only, split only...
    I've tried searching for someone else having this issue and must not be wording the search properly, can't find anyone else seeing this. It's a weird one.
    If anyone can point me to something to try so the workaround isn't needed, it would be appreciated.

    OK try this workflow.
    Create a new FGLayout and SAVE.  This will save your CSS file with whichever name you give it.
    Switch to Design View.  Click on Mobile Display.  Build your mobile layout first since this is what everything else is based on.
    Insert a few Divs and don't worry about content.  Just get the basic Div structure stacked one on top of the other like this:
    <div class="gridContainer clearfix">
         <div id="div1">
              Div 1
         </div>
          <div id="div2">
              Div 2
         </div>
         <div id="div3">
              Div 3
         </div>
          <div id="div4">
              Div 4
         </div>
    </div>
    Hit Save and name your HTML file.   Do not edit the CSS file.  DW will generate the necessary layout code for you.
    Switch to Tablet Display.
    Grab the right side handles to resize divs and move to row above as desired.
    Save often during development.
    Switch to Desktop Display and repeat.
    Once your layout is built, test media queries by previewing in browsers by resizing viewport
    When you are completely satisfied with your responsive layout, begin adding content and use a separate external style sheet for content styles.  DO NOT EDIT boilerplate or Layout CSS files as doing so could break your layout.
    Nancy O.

  • Fluid Grid Layout Alignment Issue

    I'm using Dreamweaver CC Fluid Grid Layout. This is my first time using Dreamweaver, (and first time posting to Adobe Community) so I don't have a ton of experience. Somehow, the whole body of all my pages has been aligned left and I can't find anywhere in the CSS or the HTML of the individual pages that would make it do so.  I even tried inserting a body: align: center in the CSS and also in the HTML of each page and it just won't respond. Does anyone have any ideas? I'd really REALLY appeciate some help with this because I'm totally at a loss. Below is my CSS and the HTML for my index.html .
    CSS
    @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/fluid-images/
    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:                    4;
              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/responsive-web-design
              and Golden Grid System by Joni Korpi
              http://goldengridsystem.com/
    .fluid {
              clear: both;
              margin-left: 0;
              width: 100%;
              display: block;
              color: #FFFFFF;
              font-family: source-sans-pro;
              font-style: normal;
              font-weight: 200;
              float: left;
    .fluidList {
        list-style:none;
        list-style-image:none;
        margin:0;
        padding:0;       
    /* Mobile Layout: 480px and below. */
    .gridContainer {
              margin-left: auto;
              margin-right: auto;
              width: 86.45%;
              padding-left: 2.275%;
              padding-right: 2.275%;
              clear: none;
              float: none;
    body {align-content:center}
    #top {
              margin-left: auto;
              margin-right: auto;
              text-align: center;
              font-family: source-sans-pro;
              font-style: normal;
              font-weight: 600;
    #top {
              background-color: #1f1f1f;
    #mainnav {
              background-color:#1F1F1F
    #menuSystem {
    .menuItem {
              margin-top: 9px;
              margin-bottom: 2px;
              padding-top: 2px;
              padding-bottom: 2px;
              text-align: center;
              color: #FFFFFF;
              background-color: #1f1f1f;
              width: 100%;
              clear: both;
              margin-left: 0;
              padding-left: 0px;
              -webkit-box-sizing: content-box;
              -moz-box-sizing: content-box;
              box-sizing: content-box;
              letter-spacing: 2pt;
              text-transform: uppercase;
    .gridContainer.clearfix #top h1 {
              color: #FFFFFF;
              font-family: fredericka-the-great;
              font-style: normal;
              font-weight: 400;
              text-align: center;
              text-transform: uppercase;
              letter-spacing: 5pt;
    #hero {
    h2 {
              font-family: source-sans-pro;
              font-style: normal;
              font-weight: 200;
              text-align: center;
              margin-right: 0%;
              margin-top: 10%;
              text-decoration: overline;
              color: #FFFFFF;
    #footer {
              background-color: #1F1F1F;
              color: #FFFFFF;
              text-align: left;
    #wrapper {
              background-color: #2D2D2D;
              font-family: source-sans-pro;
              position: static;
              display: inline;
    #childpageimage {
              width: 59%;
              padding-top: 0px;
              padding-bottom: 0px;
              padding-right: 2px;
    #content2 {
              color: #FFFFFF;
              font-family: source-sans-pro;
              font-style: normal;
              font-weight: 400;
              text-align: left;
              text-indent: 0px;
              padding-left: 10px;
              padding-right: 10px;
              width: 100%;
              clear: both;
              margin-left: 0;
              float: left;
    contentgallery {
              color:#FFFFFF;
    table {
              color: #FFFFFF;
              font-family:source-sans-pro;
    #childpageimage2 img {
              width: 50%;
              float: left;
              top: 0px;
              padding-top: 5px;
    #content3 {
              color: #FFFFFF;
              font-family: source-sans-pro;
              font-style: normal;
              font-weight: 200;
              text-align: left;
              padding-left: 10px;
              padding-right: 10px;
    #contact {
              width: 100%;
              clear: both;
              margin-left: 0;
              float: right;
    #contenttitle {
              width: 100%;
              color: #FFFFFF;
              text-decoration: overline;
    body {align-content:center}
    #content {
              width: 100%;
              clear: both;
              margin-left: 0;
              color: #FFFFFF;
              font-family: source-sans-pro;
              font-style: normal;
              font-weight: 200;
    .zeroMargin_mobile {
    margin-left: 0;
    .hide_mobile {
    display: none;
    /* Tablet Layout: 481px to 768px. Inherits styles from: Mobile Layout. */
    @media only screen and (min-width: 481px) {
    .gridContainer {
              width: 90.675%;
              padding-left: 1.1625%;
              padding-right: 1.1625%;
              clear: none;
              float: none;
              margin-left: auto;
    a {
              color:#FFFFFF;
              text-decoration:none;
    a:hover {color:#843F93;
    #top {
    #mainnav {
    #menuSystem {
    .menuItem {
    width: 23.0769%;
    clear: none;
    margin-left: 2.5641%;
    #hero {
    #footer {
    #wrapper {
    position: static;
    #childpageimage {
    width: 100%;
    #content2 {
    width: 100%;
    clear: both;
    margin-left: 0;
    #content3 {
    #contact {
              width: 10.2564%;
              clear: both;
              margin-left: 0;
    #contenttitle {
    width: 100%;
    #content {
    width: 100%;
    clear: both;
    margin-left: 0;
    .hide_tablet {
    display: none;
    .zeroMargin_tablet {
    margin-left: 0;
    /* 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: 88.5%;
              max-width: 1232px;
              padding-left: 0.75%;
              padding-right: 0.75%;
              margin: auto;
              clear: none;
              float: left;
              margin-left: auto;
    #top {
    #mainnav {
    #menuSystem {
    .menuItem {
              width: 23.7288%;
              margin-left: 1.6949%;
              clear: none;
    #hero {
    #footer {
    #wrapper {
              position: relative;
              height: 0%;
    #childpageimage {
              width: 49.1525%;
    #content2 {
              width: 57.6271%;
              font-size: large;
              margin-left: 1.6949%;
              clear: none;
    #content3 {
    #contact {
              width: 6.7796%;
              margin-left: 1.6949%;
              clear: none;
    #contenttitle {
    width: 32.2033%;
    #content {
    width: 40.6779%;
    margin-left: 1.6949%;
    clear: none;
    .zeroMargin_desktop {
    margin-left: 0;
    .hide_desktop {
    display: none;
    index.html
    <!doctype html>
    <!--[if lt IE 7]> <html class="ie6 oldie"> <![endif]-->
    <!--[if IE 7]>    <html class="ie7 oldie"> <![endif]-->
    <!--[if IE 8]>    <html class="ie8 oldie"> <![endif]-->
    <!--[if gt IE 8]><!-->
    <html class="">
    <!--<![endif]-->
    <head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>Kate Farrow</title>
    <style type="text/css">
    body {background-color:#1F1F1F;} </style>
    <link href="boilerplate.css" rel="stylesheet" type="text/css">
    <link href="fluidgrid.css" rel="stylesheet" type="text/css">
    <!--
    To learn more about the conditional comments around the html tags at the top of the file:
    paulirish.com/2008/conditional-stylesheets-vs-css-hacks-answer-neither/
    Do the following if you're using your customized build of modernizr (http://www.modernizr.com/):
    * insert the link to your js here
    * remove the link below to the html5shiv
    * add the "no-js" class to the html tags at the top
    * you can also remove the link to respond.min.js if you included the MQ Polyfill in your modernizr build
    -->
    <!--[if lt IE 9]>
    <script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
    <![endif]-->
    <script src="respond.min.js"></script>
    <!--The following script tag downloads a font from the Adobe Edge Web Fonts server for use within the web page. We recommend that you do not modify it.--><script>var __adobewebfontsappname__="dreamweaver"</script><script src="http://use.edgefonts.net/source-sans-pro:n2,n6,n4:default;fredericka-the-great:n4:default. js" type="text/javascript"></script>
    </head>
    <body>
    <div class="gridContainer clearfix"><div id="wrapper" class="fluid">
      <header id="top" class="fluid"><aside id="contact" class="fluid">
        <div align="center"><a href="http://www.linkedin.com/in/farrowkate" style="text-decoration:none;"><span style="font: 80% Arial,sans-serif; color:#0783B6;"><img src="http://s.c.lnkd.licdn.com/scds/common/u/img/webpromo/btn_in_20x15.png" width="40" height="30" alt="View Kate Farrow's LinkedIn profile" style="vertical-align:middle" border="0"></span></a></div>
      </aside>
        <h1 align="center">Kate Farrow</h1>
        <nav id="mainnav" class="fluid">
          <div align="center">
            <ul id="menuSystem" class="fluid fluidList">
              <li class="fluid menuItem zeroMargin_desktop zeroMargin_tablet"><a href="index1.html">Home</a></li>
              <li class="fluid menuItem"><a href="about.html">About</a></li>
              <li class="fluid menuItem"><a href="work.html">Work</a></li>
              <li class="fluid menuItem"><a href="resume.html">Resum&Eacute;</a></li>
            </ul>
          </div>
        </nav>
      </header><div id="hero" class="fluid"><img src="140210_Kate_044.jpg" alt=""/></div>
      <div id="contenttitle" class="fluid">
        <h2>Who am I?</h2>
      </div>
      <article id="content2" class="fluid">
        <p>My name is <strong>Kate Farrow</strong>. </p>
        <p>I’m a creative spirit with a great imagination, a passion for writing, and a knack for web strategy. Check out my work to see what I’m talking about.</p>
      </article>
      <footer id="footer" class="fluid">
        <p> </p>
        <p>&copy; Kate Farrow 2014. Photography &copy; L. Farrow and J. Sandhu</p>
        <p> </p>
      </footer>
    </div></div>
    </body>
    </html>

    The "align" attribute is obsolete.  See centering Pages, Images and other elements with CSS
    http://cookbooks.adobe.com/post_Centering_web_pages_and_other_elements_with_CSS-16640.html
    FluidGrids are for experienced web designers who already understand  the core concepts of HTML, CSS and  Advanced CSS Media Queries.  Don't bite off more than you can  chew for a 1st project.  Start with a stable, fixed-width layout.  When you become proficient with that, then you can take on more challenges.
    Go to File > New > Blank page > HTML.  Select a layout from the 3rd panel.  Hit Create.
    Creating your first web site in DW - (5-part tutorial)
    http://www.adobe.com/devnet/dreamweaver/articles/first_website_pt1.html
    Nancy O.

  • Fluid grid layout issues

    trying my hand at thsi fluid grid layout thing and am having a few issues. part of the problem is i may just be trying to do too much, making an ecommerce site and the page has quite a few div's in it, a header, description, picture, cart, and price div per each item. the layout looks fine in the mobile view but i can't get the divs to match up in the tablet and desktop view.
    i know there are other programs like bootstrap out there, but just not sure if they are going to run into the same issue.  the simple fix would be just to create each of these items in photopshop and then each item would just be one div, instead of 5. but then the issue becomes i create the size of each item for the mobile view, but by the time it gets to the desktop view the quality of the image is going to be crummy.
    the final option would be just to get another url and build that page for mobile, and have a link there on the page to view full site and just direct it to my url that has the desktop site up and running, and do vice versa on the desktop site.
    HELLLLLPPPPPPPP! any advice or direction would be appreciated.
    my url is http://www.coloredfortunecookies.com if you want to see my issues. you can play with the screen size in your browser and see all looks great in mobile view, but not the other.
    thanks!

    I just think you're tying to put too much stuff into this.  The best Responsive Web Designs are very clean and uncomplicated.  See example below:
    http://alt-web.com/FluidGrid/Fluid-4.html
    Basically no floats in mobile
    2-floated columns in tablets
    4-floated columns in desktops.
    Nancy O.

  • Fluid Grid Layout issue

    i created a Fluid Grid Layout the other day.  Published it via FTP and it worked fine.   Today I made some changes to the page and they look fine on dreamweaver.   When I save and publish,  none of the changes show up on the site.   Are there other files I need to save with Fluid Grid to make it work?

    Hello,
    I am also able to see only 4 items. It means page and its dependent files are not getting uploaded to the correct location.
    While transferring files to FTP please make sure the new.html file is overwriting the pre-existing file at root folder.
    Once the transfer is completed correctly it should work.
    In case you are not sure about it then you can share a screenshot of both local and server view by clicking "Expand to show local and remote site "button at the right side corner of files tab so that i can get idea about file structure at the host.
    Regards
    Vivek

  • CS6, Fluid Grid Layouts, and Spry Menu - sizing issues

    Hi. I am a full-fledged nubie to Dreamweaver, so please forgive my ignorance. But I really need to build a new site, and I really like DW so far (much better than what I was using).
    I am building a site with fluid grid layouts so it is properly sized across all decices. I have inserted a spry horizontal menu as my primary navigation. I got the menu to look like I want it as far as formatting goes.
    But when I view the page live and change the size of my browser, the menu wraps around to the next row, even with fairly large browser windows.
    Can anyone tell me how to scale the spry menu bar the same as an image does in a fluid grid layout?
    Thanks,
    Steven

    Don't use Spry Menus.  #1 they're not Responsive.  #2 They don't work all that well on Touch Screen devices.  #3 Adobe abandoned the Spry framework last year.   Is that enough to convince you?  See links below for alternatives.
    Pop-Menu  Magic2 by PVII (commercial DW Extension)
    http://www.projectseven.com/products/menusystems/pmm2/index.htm
    jQuery Superfish
    http://users.tpg.com.au/j_birch/plugins/superfish/
    jQuery Mega Menus  http://www.javascriptkit.com/script/script2/jkmegamenu.shtml
    CSS3 Dropdown Menus
    http://www.red-team-design.com/css3-dropdown-menu
    10 Responsive Menus
    http://speckyboy.com/2012/08/29/10-responsive-navigation-solutions-and-tutorials/
    Nancy O.

  • Cs6 fluid grid layout wide-screen resolution issue

    Hi all, I've done some poking around but have not found anything that answers this question - if I missed something please pass me the link!
    So I'm doing a new site in cs6 with fluid grid layouts. It's fine in terms of screen sizes, that is, small medium large, but different resolutions make the content appear differently. Specifically on desktop size screens with wide-screen resolutions (eg 1600X1200) the content is squeezed up towards the top of the page. The background image is fine on all resolutions - fills the screen - but the content on top changes according to the resolution. On my screen (1600X900) there's a nice distribution of content vertically. Is there any way to make it so that the content adjusts for resolution, not just size? Thanks in advance.

    What I'd like is for the widescreen view not to change the vertical distribution. That is, on my screen the content fills about 3/4 of the screen, which looks fine. On widescreen resolution, it barely covers 2/3 and it looks top-heavy - users I've asked with widescreen resolutions have said "it looks squished towards the top, why don't you move it down?". I guess I don't understand, if height as well as width is determined in percentage, why this happens (that lack of understanding could reveal my fundamental lack of understanding of aspect ratio/mathematics in general ).
    I suppose I could give a bigger margin at the top to move the content down the page in all cases, but on my screen, not widescreen, that's not ideal. And I'm hoping there's a way to adjust for widescreen without affecting all resolutions.

  • How do I get my Fluid Grid Layout page to resizes from portrait to landscape for iPhones?

    Starting in portrait on my iPhone 4, the fluid grid layout page does not resize when I turn to landscape.  After I refresh / resize to fit the page on landscape and then turn the iPhone to portrait, the page resizes just fine.  Everything seems to be working just fine on the desktop, ignoring IE.  Could it be my media query tags?
    If anyone knows a solution, it would be much appreciated.  Thanks.
    Here is my test page: http://www.bedroomandmore.com/1_b_fluidGrid.html
    Here are my media query tags (the first set of rules does not have the media query tag and becomes the default):
    @media only screen and (max-device-width: 480px) and (orientation : landscape) {
    @media only screen and (min-width: 481px) {
    @media only screen and (min-width: 769px) {
    Here is most of my media query CSS:
    @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/fluid-images/
    img, object, embed, video {
              max-width: 100%;
    /* IE 6 does not support max-width so default to width 100% */
    .ie6 img {
              width:100%;
    /* Mobile Layout: 480px and below.(smartphone portrait) */
    .gridContainer {
              width: 95.4184%;
              padding-left: 0.5907%;
              padding-right: 0.5907%;
    #header {
              clear: both;
              float: left;
              display: block;
              margin-left: 0%;
              width: 72%;
              max-height: 0%;
              display: -moz-box; /* Firefox */
              display: -webkit-box; /* Safari and Chrome */
              display: box;
              border: none;
              top: auto;
              padding-top: 0.25em;
    #menuHorizontal {
              clear: both;
              float: left;
              width: 118%;
              height:100%;
              margin-left: auto;
              position:relative;
              top:-1em;
              display: block;
    #slides {
              clear: both;
              float: left;
              margin-left: 0.1em;
              width: 119%;
              position: relative;
              top: -1em;
              display: block;
                        /*Slides container: Important: Use position:relative; with top:-1em; together to position div.
                                  Set the width of your slides container
                                  Set to    display: none     to prevent content flash*/
    .slides_container {
              clear: both;
              width: 100%;
              display: block;
                        /*Each slide: Important:
                                  Set the width of your slides
                                  If height not specified height will be set by the slide content
                                  Set to     display: block     for original setting
                                  slide_container is container size
                                  slides_container div set the size of the image inside--adjust to fit image in it so it is not cropped*/
    .slides_container div {
              clear: both;
              width: 69%;
              display: block;
              /* Mobile Layout: 480px. (smartphone landscape)
                                  Inherits styles from Mobile Layout 480px.
                                  Set to clear:none; to allow div to shift up
                                  Or set to clear:both; to take a whole row of the screen*/
    @media only screen and (max-device-width: 480px) and (orientation : landscape) {
    .gridContainer {
              width: 95.4184%;
              padding-left: 0.7907%;
              padding-right: 0.7907%;
    #header {
              clear:both;
              float: left;
              display: block;
              margin-left: auto;
              width:100%;
              display: -moz-box; /* Firefox */
              display: -webkit-box; /* Safari and Chrome */
              display: box;
              border: none;
    #menuHorizontal {
              clear:both;
              float: left;
              width: 110%;
              margin-left:auto;
              display: block;
    #slides {
              clear:both;
              float: left;
              margin-left: 0%;
              width: 68%;
              display: block;
                        /*Slides container: Important:
                                  Set the width of your slides container
                                  Set to    display: none     to prevent content flash*/
    .slides_container {
              clear:both;
              float: left;
              width: 100%;
              display: block;
                        /*Each slide: Important:
                                  Set the width of your slides
                                  If height not specified height will be set by the slide content
                                  Set to     display: block     for original setting*/
    .slides_container div {
              clear:both;
              width:69%;
              display: block;
                        /* Tablet Layout: 481px to 768px. Inherits styles from: Mobile Layout.
                                  Set to clear:none; to allow div to shift up
                                  Or set to clear:both; to take a whole row of the screen*/
    @media only screen and (min-width: 481px) {
    .gridContainer {
              width: 95.9456%;
              padding-left: 0.5271%;
              padding-right: 0.5271%;
    #header {
              clear:both;
              float: left;
              display: block;
              margin-left: auto;
              width: 100%;
              display: -moz-box; /* Firefox */
              display: -webkit-box; /* Safari and Chrome */
              display: box;
              border: none;
    #menuHorizontal {
              clear:both;
              float: left;
              margin-left:auto;
              display: block;
    #slides {
              clear:both;
              float: left;
              margin-left: 0%;
              width: 70%;
              display: block;
                        /*Slides container: Important:
                                  Set the width of your slides container
                                  Set to    display: none     to prevent content flash*/
    .slides_container {
              clear:both;
              float: left;
              width: 100%;
              display: block;
                        /*Each slide: Important:
                                  Set the width of your slides
                                  If height not specified height will be set by the slide content
                                  Set to     display: block     for original setting*/
    .slides_container div {
              width: 100%;
              display: block;

    I found the problem.  There is a bug in Safari for iPhone 4.  Use code to fix found at http://stackoverflow.com/a/6379407

  • CSS height property use in Fluid grid layout

    Hi, I'm totally new to fluid grid layout and just got started in it. I have a div tag that has 5px height and I sucessfully applied that and seem fine only on Tablet landscape (1024x768) and Small tablet landscape (800x600), nevertheless it isn't even displaying on Mobile portrait (320x480), Mobile landscape (480x320), Small tablet portrait (600x800) and Tablet portrait (768x1024).
    My coding is below
    index.html
    <!doctype html>
    <!--[if lt IE 7]> <html class="ie6 oldie"> <![endif]-->
    <!--[if IE 7]>    <html class="ie7 oldie"> <![endif]-->
    <!--[if IE 8]>    <html class="ie8 oldie"> <![endif]-->
    <!--[if gt IE 8]><!-->
    <html class="">
    <!--<![endif]-->
    <head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>Untitled Document</title>
    <link href="fluid.grid.layout/boilerplate.css" rel="stylesheet" type="text/css">
    <link href="fluid.grid.layout/style.css" rel="stylesheet" type="text/css">
    <!--
    To learn more about the conditional comments around the html tags at the top of the file:
    paulirish.com/2008/conditional-stylesheets-vs-css-hacks-answer-neither/
    Do the following if you're using your customized build of modernizr (http://www.modernizr.com/):
    * insert the link to your js here
    * remove the link below to the html5shiv
    * add the "no-js" class to the html tags at the top
    * you can also remove the link to respond.min.js if you included the MQ Polyfill in your modernizr build
    -->
    <!--[if lt IE 9]>
    <script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
    <![endif]-->
    <script src="fluid.grid.layout/respond.min.js"></script>
    </head>
    <body>
    <div class="gridContainer clearfix">
      <div id="LayoutDiv1"></div>
    </div>
    </body>
    </html>
    boilerplate.css
    @charset "utf-8";
    * HTML5 ✰ Boilerplate
    * What follows is the result of much research on cross-browser styling.
    * Credit left inline and big thanks to Nicolas Gallagher, Jonathan Neal,
    * Kroc Camen, and the H5BP dev community and team.
    * Detailed information about this CSS: h5bp.com/css
    * Dreamweaver modifications:
    * 1. Commented out selection highlight
    * 2. Removed media queries section (we add our own in a separate file)
    * ==|== normalize ==========================================================
    /* =============================================================================
       HTML5 display definitions
       ========================================================================== */
    article, aside, details, figcaption, figure, footer, header, hgroup, nav, section { display: block; }
    audio, canvas, video { display: inline-block; *display: inline; *zoom: 1; }
    audio:not([controls]) { display: none; }
    [hidden] { display: none; }
    /* =============================================================================
       Base
       ========================================================================== */
    * 1. Correct text resizing oddly in IE6/7 when body font-size is set using em units
    * 2. Force vertical scrollbar in non-IE
    * 3. Prevent iOS text size adjust on device orientation change, without disabling user zoom: h5bp.com/g
    html { font-size: 100%; overflow-y: scroll; -webkit-text-size-adjust: 100%; -ms-text-size-adjust: 100%; }
    body { margin: 0; font-size: 13px; line-height: 1.231; }
    body, button, input, select, textarea { font-family: sans-serif; color: #222; }
    * Remove text-shadow in selection highlight: h5bp.com/i
    * These selection declarations have to be separate
    * Also: hot pink! (or customize the background color to match your design)
    /* Dreamweaver: uncomment these if you do want to customize the selection highlight
    *::-moz-selection { background: #fe57a1; color: #fff; text-shadow: none; }
    *::selection { background: #fe57a1; color: #fff; text-shadow: none; }
    /* =============================================================================
       Links
       ========================================================================== */
    a { color: #00e; }
    a:visited { color: #551a8b; }
    a:hover { color: #06e; }
    a:focus { outline: thin dotted; }
    /* Improve readability when focused and hovered in all browsers: h5bp.com/h */
    a:hover, a:active { outline: 0; }
    /* =============================================================================
       Typography
       ========================================================================== */
    abbr[title] { border-bottom: 1px dotted; }
    b, strong { font-weight: bold; }
    blockquote { margin: 1em 40px; }
    dfn { font-style: italic; }
    hr { display: block; height: 1px; border: 0; border-top: 1px solid #ccc; margin: 1em 0; padding: 0; }
    ins { background: #ff9; color: #000; text-decoration: none; }
    mark { background: #ff0; color: #000; font-style: italic; font-weight: bold; }
    /* Redeclare monospace font family: h5bp.com/j */
    pre, code, kbd, samp { font-family: monospace, monospace; _font-family: 'courier new', monospace; font-size: 1em; }
    /* Improve readability of pre-formatted text in all browsers */
    pre { white-space: pre; white-space: pre-wrap; word-wrap: break-word; }
    q { quotes: none; }
    q:before, q:after { content: ""; content: none; }
    small { font-size: 85%; }
    /* Position subscript and superscript content without affecting line-height: h5bp.com/k */
    sub, sup { font-size: 75%; line-height: 0; position: relative; vertical-align: baseline; }
    sup { top: -0.5em; }
    sub { bottom: -0.25em; }
    /* =============================================================================
       Lists
       ========================================================================== */
    ul, ol { margin: 1em 0; padding: 0 0 0 40px; }
    dd { margin: 0 0 0 40px; }
    nav ul, nav ol { list-style: none; list-style-image: none; margin: 0; padding: 0; }
    /* =============================================================================
       Embedded content
       ========================================================================== */
    * 1. Improve image quality when scaled in IE7: h5bp.com/d
    * 2. Remove the gap between images and borders on image containers: h5bp.com/e
    img { border: 0; -ms-interpolation-mode: bicubic; vertical-align: middle; }
    * Correct overflow not hidden in IE9
    svg:not(:root) { overflow: hidden; }
    /* =============================================================================
       Figures
       ========================================================================== */
    figure { margin: 0; }
    /* =============================================================================
       Forms
       ========================================================================== */
    form { margin: 0; }
    fieldset { border: 0; margin: 0; padding: 0; }
    /* Indicate that 'label' will shift focus to the associated form element */
    label { cursor: pointer; }
    * 1. Correct color not inheriting in IE6/7/8/9
    * 2. Correct alignment displayed oddly in IE6/7
    legend { border: 0; *margin-left: -7px; padding: 0; }
    * 1. Correct font-size not inheriting in all browsers
    * 2. Remove margins in FF3/4 S5 Chrome
    * 3. Define consistent vertical alignment display in all browsers
    button, input, select, textarea { font-size: 100%; margin: 0; vertical-align: baseline; *vertical-align: middle; }
    * 1. Define line-height as normal to match FF3/4 (set using !important in the UA stylesheet)
    * 2. Correct inner spacing displayed oddly in IE6/7
    button, input { line-height: normal; *overflow: visible; }
    * Reintroduce inner spacing in 'table' to avoid overlap and whitespace issues in IE6/7
    table button, table input { *overflow: auto; }
    * 1. Display hand cursor for clickable form elements
    * 2. Allow styling of clickable form elements in iOS
    button, input[type="button"], input[type="reset"], input[type="submit"] { cursor: pointer; -webkit-appearance: button; }
    * Consistent box sizing and appearance
    input[type="checkbox"], input[type="radio"] { box-sizing: border-box; }
    input[type="search"] { -webkit-appearance: textfield; -moz-box-sizing: content-box; -webkit-box-sizing: content-box; box-sizing: content-box; }
    input[type="search"]::-webkit-search-decoration { -webkit-appearance: none; }
    * Remove inner padding and border in FF3/4: h5bp.com/l
    button::-moz-focus-inner, input::-moz-focus-inner { border: 0; padding: 0; }
    * 1. Remove default vertical scrollbar in IE6/7/8/9
    * 2. Allow only vertical resizing
    textarea { overflow: auto; vertical-align: top; resize: vertical; }
    /* Colors for form validity */
    input:valid, textarea:valid {  }
    input:invalid, textarea:invalid { background-color: #f0dddd; }
    /* =============================================================================
       Tables
       ========================================================================== */
    table { border-collapse: collapse; border-spacing: 0; }
    td { vertical-align: top; }
    /* ==|== primary styles =====================================================
       Author:
       ========================================================================== */
    /* ==|== non-semantic helper classes ========================================
       Please define your styles before this section.
       ========================================================================== */
    /* For image replacement */
    .ir { display: block; border: 0; text-indent: -999em; overflow: hidden; background-color: transparent; background-repeat: no-repeat; text-align: left; direction: ltr; }
    .ir br { display: none; }
    /* Hide from both screenreaders and browsers: h5bp.com/u */
    .hidden { display: none !important; visibility: hidden; }
    /* Hide only visually, but have it available for screenreaders: h5bp.com/v */
    .visuallyhidden { border: 0; clip: rect(0 0 0 0); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; width: 1px; }
    /* Extends the .visuallyhidden class to allow the element to be focusable when navigated to via the keyboard: h5bp.com/p */
    .visuallyhidden.focusable:active, .visuallyhidden.focusable:focus { clip: auto; height: auto; margin: 0; overflow: visible; position: static; width: auto; }
    /* Hide visually and from screenreaders, but maintain layout */
    .invisible { visibility: hidden; }
    /* Contain floats: h5bp.com/q */
    .clearfix:before, .clearfix:after { content: ""; display: table; }
    .clearfix:after { clear: both; }
    .clearfix { zoom: 1; }
    /* ==|== print styles =======================================================
       Print styles.
       Inlined to avoid required HTTP connection: h5bp.com/r
       ========================================================================== */
    @media print {
      * { background: transparent !important; color: black !important; text-shadow: none !important; filter:none !important; -ms-filter: none !important; } /* Black prints faster: h5bp.com/s */
      a, a:visited { text-decoration: underline; }
      a[href]:after { content: " (" attr(href) ")"; }
      abbr[title]:after { content: " (" attr(title) ")"; }
      .ir a:after, a[href^="javascript:"]:after, a[href^="#"]:after { content: ""; }  /* Don't show links for images, or javascript/internal links */
      pre, blockquote { border: 1px solid #999; page-break-inside: avoid; }
      thead { display: table-header-group; } /* h5bp.com/t */
      tr, img { page-break-inside: avoid; }
      img { max-width: 100% !important; }
      @page { margin: 0.5cm; }
      p, h2, h3 { orphans: 3; widows: 3; }
      h2, h3 { page-break-after: avoid; }
    style.css
    @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/fluid-images/
    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:                    4;
              dw-num-cols-tablet:                    8;
              dw-num-cols-desktop:          10;
              dw-gutter-percentage:          25;
              Inspiration from "Responsive Web Design" by Ethan Marcotte
              http://www.alistapart.com/articles/responsive-web-design
              and Golden Grid System by Joni Korpi
              http://goldengridsystem.com/
    /* Mobile Layout: 480px and below. */
    .gridContainer {
              margin-left: auto;
              margin-right: auto;
              width: 85.5%;
              padding-left: 2.25%;
              padding-right: 2.25%;
    #LayoutDiv1 {
              clear: both;
              float: left;
              margin-left: 0;
              width: 100%;
              height:5px;
              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%;
    #LayoutDiv1 {
              clear: both;
              float: left;
              margin-left: 0;
              width: 100%;
              height:5px;
              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%;
              max-width: 1232px;
              padding-left: 1%;
              padding-right: 1%;
              margin: auto;
    #LayoutDiv1 {
              clear: both;
              float: left;
              margin-left: 0;
              width: 100%;
              display: block;
              height:5px;
              background-color:#FBB829;
    respond.min.js
    /*! Respond.js v1.0.1pre: min/max-width media query polyfill. (c) Scott Jehl. MIT/GPLv2 Lic. j.mp/respondjs  */
    (function(e,h){e.respond={};respond.update=function(){};respond.mediaQueriesSupported=h;if(h){return}var u=e.document,r=u.documentElement,i=[],k=[],p=[],o={},g=30,f=u.getElementsByTagName("head")[0]||r,b=f.getElementsByTagName("link"),d=[],a=function(){var B=b,w=B.length,z=0,y,x,A,v;for(;z<w;z++){y=B[z],x=y.href,A=y.media,v=y.rel&&y.rel.toLowerCase()==="stylesheet";if(!!x&&v&&!o[x]){if(y.styleSheet&&y.styleSheet.rawCssText){m(y.styleSheet.rawCssText,x,A);o[x]=true}else{if(!/^([a-zA-Z]+?:(\/\/)?)/.test(x)||x.replace(RegExp.$1,"").split("/")[0]===e.location.host){d.push({href:x,media:A})}}}}t()},t=function(){if(d.length){var v=d.shift();n(v.href,function(w){m(w,v.href,v.media);o[v.href]=true;t()})}},m=function(G,v,x){var E=G.match(/@media[^\{]+\{([^\{\}]+\{[^\}\{]+\})+/gi),H=E&&E.length||0,v=v.substring(0,v.lastIndexOf("/")),w=function(I){return I.replace(/(url\()['"]?([^\/\)'"][^:\)'"]+)['"]?(\))/g,"$1"+v+"$2$3")},y=!H&&x,B=0,A,C,D,z,F;if(v.length){v+="/"}if(y){H=1}for(;B<H;B++){A=0;if(y){C=x;k.push(w(G))}else{C=E[B].match(/@media ([^\{]+)\{([\S\s]+?)$/)&&RegExp.$1;k.push(RegExp.$2&&w(RegExp.$2))}z=C.split(",");F=z.length;for(;A<F;A++){D=z[A];i.push({media:D.match(/(only\s+)?([a-zA-Z]+)(\sand)?/)&&RegExp.$2,rules:k.length-1,minw:D.match(/\(min\-width:[\s]*([\s]*[0-9]+)px[\s]*\)/)&&parseFloat(RegExp.$1),maxw:D.match(/\(max\-width:[\s]*([\s]*[0-9]+)px[\s]*\)/)&&parseFloat(RegExp.$1)})}}j()},l,q,j=function(E){var v="clientWidth",x=r[v],D=u.compatMode==="CSS1Compat"&&x||u.body[v]||x,z={},C=u.createDocumentFragment(),B=b[b.length-1],w=(new Date()).getTime();if(E&&l&&w-l<g){clearTimeout(q);q=setTimeout(j,g);return}else{l=w}for(var y in i){var F=i[y];if(!F.minw&&!F.maxw||(!F.minw||F.minw&&D>=F.minw)&&(!F.maxw||F.maxw&&D<=F.maxw)){if(!z[F.media]){z[F.media]=[]}z[F.media].push(k[F.rules])}}for(var y in p){if(p[y]&&p[y].parentNode===f){f.removeChild(p[y])}}for(var y in z){var G=u.createElement("style"),A=z[y].join("\n");G.type="text/css";G.media=y;if(G.styleSheet){G.styleSheet.cssText=A}else{G.appendChild(u.createTextNode(A))}C.appendChild(G);p.push(G)}f.insertBefore(C,B.nextSibling)},n=function(v,x){var w=c();if(!w){return}w.open("GET",v,true);w.onreadystatechange=function(){if(w.readyState!=4||w.status!=200&&w.status!=304){return}x(w.responseText)};if(w.readyState==4){return}w.send(null)},c=(function(){var v=false;try{v=new XMLHttpRequest()}catch(w){v=new ActiveXObject("Microsoft.XMLHTTP")}return function(){return v}})();a();respond.update=a;function s(){j(true)}if(e.addEventListener){e.addEventListener("resize",s,false)}else{if(e.attachEvent){e.attachEvent("onresize",s)}}})(this,(function(f){if(f.matchMedia){return true}var e,i=document,c=i.documentElement,g=c.firstElementChild||c.firstChild,h=!i.body,d=i.body||i.createElement("body"),b=i.createElement("div"),a="only all";b.id="mq-test-1";b.style.cssText="position:absolute;top:-99em";d.appendChild(b);b.innerHTML='_<style media="'+a+'"> #mq-test-1 { width: 9px; }</style>';if(h){c.insertBefore(d,g)}b.removeChild(b.firstChild);e=b.offsetWidth==9;if(h){c.removeChild(d)}else{d.removeChild(b)}return e})(this));
    I really do appreciate your efforts to help me solve this problem... Thank you in advance

    Height is determined by content.  I can't think of a single reason to have a div height of 5px because almost nothing will fit inside that small a space without problems. 
    As to why it doesn't show up in other devices, you must have put that style into the Tablet CSS code instead of the default Mobile CSS code.
    Fluid Grids build up from Mobile (applied to everything) with specific rules for Tablets, then Desktops.
    Best advice, use Fluid Grids for layout only.  Use a separate CSS file for content styles.
    Hope this helps,
    Nancy O.

  • Placing a background image in fluid grid layout

    I am having trouble building a fluid grid layout  I am not sure why but when I shrink the layout it doesn't seem to work correctly
    I need to do 2 things.
    1) make the background image shrink as it is suppossd to. when you scale down the images doesn't shirink to tablet size and isn't there for the phone size (although I think I want a new image for phone with just one side of the (page image). on it so I assume I just link that in there under that section in in the css
    2)It doesn't seem to want to align the writing so that it is only over the page section of the background image on each side (the rightcontent and left content boxes-ie they should look like text on a page)
    also I want to take the page here when it is finished and make it a template for further pages (just changing the text) is that done the same as usual for the fluid grids?
    Thank you in advance for the help
    Here is the link that the site has been temp posted on for detail editing. 
    http://approvalsite.info/

    Kind of makes sense.
    I am not sure how to make the div tag layouts relative to the background image.
    please advise.
    also, I have been playing with it and it seems to be working better now.
    But the issue I have with it now is that the image on the right side of the page keeps showing at the bottom of the page instead of on the top of the page directly next to the wording on the left.
    does anyone know why?
    I am sure it is just a simple coding issue.
    help
    approvalsite.info
    CSS:
    @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/fluid-images/
    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:        5;
        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/responsive-web-design
        and Golden Grid System by Joni Korpi
        http://goldengridsystem.com/
    /* Mobile Layout: 480px and below. */
    .gridContainer {
        width: 85%;
        padding-left: 1.82%;
        padding-right: 1.82%;
        background: url(../images/DSC_0014.jpg) center fixed;
        -webkit-background-size: cover;
          -moz-background-size: cover;
          -o-background-size: cover;
          -background-size: cover;
    #LayoutDiv1 {
        clear: both;
        float: left;
        margin-left: 0;
        width: 100%;
        display: block;
    #header {
        clear: both;
        float: left;
        margin-left: 0;
        width: 100%;
        display: block;
    #menubar {
        clear: both;
        float: left;
        margin-left: 0;
        width: 100%;
        display: block;
    #leftcontent {
        clear: both;
        float: left;
        margin-left: 0;
        width: 100%;
        display: block;
        height:auto;
    #rightcontent {
        clear: both;
        float: right;
        margin-left: 0;
        width: 100%;
        display: block;
        height:auto;
    #footer {
        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: 90.675%;
        padding-left: 1.1625%;
        padding-right: 1.1625%;
        background: url(../images/DSC_0013.jpg) no-repeat center center fixed;
          -webkit-background-size: cover;
          -moz-background-size: cover;
          -o-background-size: cover;
          -background-size: cover;
    #LayoutDiv1 {
        clear: both;
        float: left;
        margin-left: 0;
        width: 100%;
        display: block;
    #header {
        clear: both;
        float: left;
        margin-left: 0;
        width: 100%;
        display: block;
    #menubar {
        clear: both;
        float: left;
        margin-left: 0;
        width: 100%;
        display: block;
    #leftcontent {
        clear: both;
        float: left;
        margin-left: 0;
        width: 100%;
        display: block;
    #rightcontent {
        clear: both;
        float: right;
        margin-left: 0;
        width: 100%;
        display: block;
    #footer {
        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: 90%;
        max-width: 1232px;
        padding-left: 0.75%;
        padding-right: 0.75%;
        margin: auto;
        background: url(../images/DSC_0013.jpg) no-repeat center center fixed;
          -webkit-background-size: cover;
          -moz-background-size: cover;
          -o-background-size: cover;
          -background-size: cover;
    #LayoutDiv1 {
        clear: both;
        float: left;
        margin-left: 0;
        width: 100%;
        display: block;
    #header {
        clear: both;
        float: left;
        margin-left: 5%;
        width: 100%;
        display: block;
    #menubar {
        clear: both;
        float: left;
        margin-left: 0;
        width: 100%;
        display: block;
    #leftcontent {
        clear: both;
        float: left;
        margin-left: 15%;
        width: 30%;
        display: block;
        padding-right: 2%;
    #rightcontent {
        clear: none;
        float: right;
        margin-left: 1%;
        width: 49%;
        display: block;
        margin-right: 8%;
    #footer {
        clear: both;
        float: left;
        margin-left: 0;
        width: 100%;
        display: block;
    HTML
    <!doctype html>
    <!--[if lt IE 7]> <html class="ie6 oldie"> <![endif]-->
    <!--[if IE 7]>    <html class="ie7 oldie"> <![endif]-->
    <!--[if IE 8]>    <html class="ie8 oldie"> <![endif]-->
    <!--[if gt IE 8]><!-->
    <html class="">
    <!--<![endif]-->
    <head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>Untitled Document</title>
    <link href="boilerplate.css" rel="stylesheet" type="text/css">
    <link href="_css/layout.css" rel="stylesheet" type="text/css">
    <!--
    To learn more about the conditional comments around the html tags at the top of the file:
    paulirish.com/2008/conditional-stylesheets-vs-css-hacks-answer-neither/
    Do the following if you're using your customized build of modernizr (http://www.modernizr.com/):
    * insert the link to your js here
    * remove the link below to the html5shiv
    * add the "no-js" class to the html tags at the top
    * you can also remove the link to respond.min.js if you included the MQ Polyfill in your modernizr build
    -->
    <!--[if lt IE 9]>
    <script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
    <![endif]-->
    <script src="respond.min.js"></script>
    <!-- Start css3menu.com HEAD section -->
    <link rel="stylesheet" href="index_files/css3menu1/style.css" type="text/css" />
    <!-- End css3menu.com HEAD section -->
    </head>
    <body>
    <div class="gridContainer clearfix">
      <div id="header"><h1>Jan Kardy's Literary Agency</h1></div>
    <div id="menubar">
    <!-- Start css3menu.com BODY section id=1 -->
    <ul id="css3menu1" class="topmenu">
        <li class="topfirst"><a href="../index.html" style="height:18px;line-height:18px;">Home</a></li>
        <li class="topmenu"><a href="../about_jankardys.html" style="height:18px;line-height:18px;">About Jan Kardys</a></li>
        <li class="topmenu"><a href="#" style="height:18px;line-height:18px;"><span>Resources</span></a>
        <ul>
            <li><a href="../Education_connection.html">Education Connection</a></li>
            <li><a href="../submission_guidelines.html">Submission Guidelines</a></li>
            <li><a href="#"><span>Blogs</span></a>
            <ul>
                <li><a href="http://unicornwritersconferencect.blogspot.com/">Unicorn Writers Conference</a></li>
                <li><a href="http://advancenetworkingunicorn.blogspot.com/">Advanced Networking Blogs</a></li>
            </ul></li>
            <li><a href="../first_steps_to_publishing.html">First Steps to Publishing</a></li>
            <li><a href="../library_publish_events.html">Library &amp; Publishing Events</a></li>
            <li><a href="#">Art Gallery</a></li>
        </ul></li>
        <li class="topmenu"><a href="#" style="height:18px;line-height:18px;">Clients</a></li>
        <li class="toplast"><a href="#" style="height:18px;line-height:18px;">Contact Jan Kardys</a></li>
    </ul>
    <p style="display:none"><a href="http://css3menu.com/">Horizontal Menu Using CSS Css3Menu.com</a></p>
    <!-- End css3menu.com BODY section -->
    </div>
      <div id="leftcontent">
        <p>Jan   Kardys, President of Black Hawk Literary Agency, has thirty years of   diversified publishing experience for nine major publishing   corporations. Black Hawk Literary Agency LLC represents a broad spectrum   of authors and illustrators, with a focus on new nonfiction and   fiction.  <br />
        </p>
        <p>Jan was Director of   Contracts for Warner Books/Little, Brown &amp; Company, Director of   Contracts at Macmillan Publishing Company, Charles Scribner's Sons, and   Contracts Director at Prentice Hall/Simon &amp; Schuster. Ms. Kardys has   worked at Harcourt Brace Jovanovich, Doubleday, Scholastic, Lippincott   &amp; Crowell, Publishers, St. Martin's Press, Conde Nast Publications,   and Google. Beginning a career in editorial, Jan also worked in art and   production in School publishing. Jan held various executive positions in   subsidiary rights, licensing, database design, imaging, royalty   conversions, contracts, copyrights &amp; permissions departments.<br />
        </p>
        <p></p>
      </div>
        <div id="rightcontent"><p><strong><center>Jan Kardys, Literary Agent<br />
        Black Hawk Literary Agency, LLC. <br />
        17 Church Hill Road,<br />Redding, CT 06896</center></strong></p>
        <p><strong><center>
          <p><img src="images/jankardys.jpg" alt="jankardys_headshot" /></p>
          <p>Blog: <a title="http://bookpublishingteacher.blogspot.com" onkeypress="window.open(this.href); return false;" onclick="window.open(this.href); return false;" href="http://bookpublishingteacher.blogspot.com">http: bookpublishingteacher.blogspot.com</a><br />
          </p>
          <p>Email: <a href="mailto:[email protected]" title="mailto:[email protected]">[email protected]</a> <br />
          </p>
          <p>Phone: 203-938-7405</p>
        </center></strong></p>
      </div>
        <div id="footer"><h6>Webpage designed by Technomage Web Design</h6></div>
    </div>
    </body>
    </html>

  • How can I convert my web page from a fixed width layout to a fluid grid layout?

    I'm taking a web design class (I'm using Dreamweaver CS6, btw)  wherein the professor started us out building our websites in a fixed width layout but now I want to change my site into a fluid grid layout. My "site" so far is just one long page, and I've already designed it with fluid grid adjustments in mind (most things are centered  in the layout) so it shouldn't need excessive tweaking.
    Is there a way to duplicate the site folder that holds my first page, re-open a new document in fluid, then copy the code in and tweak the width parameters for the different layouts?
    Did I just answer my own question? Help - I am new at this!!
    Thanks all,
    KC

    Herbert2001 wrote:
    A bit off-topic, but Osgood: have you ever used SASS or LESS? When you are building your own grid systems it can save you a tremendous amount of time, and it's a lot of fun.
    Take the following simple example - it generates all the 23 css classes automatically for a 12 grid system. And simply changing one variable allows you to create and calculate any number of columns!
    //variables
    $desktop: 1025px;
    $large-columns: 12;
    @media only screen and (min-width: $desktop) {
         //regular grid span classes
        @for $i from 1 through $large-columns {
            .span-large-#{$i} {
                width: percentage($i/$large-columns);
         // push classes
        @for $i from 1 through (($large-columns)-1) {
            .push-large-#{$i} {
                margin-left: percentage($i/$large-columns);
    No, not explored it yet, and may never....I don't know. I don't really make much money out of web design. It's becoming more and more difficult to find the desire to learn new techniques when the opportunities aren't really there to put them into practice on as regular basis as I would like.  I've got  a very good handle on css, php, html, jQuery - I'm not sure I want to add another layer at the moment, given I'm never quite sure how long I will continue to 'bang my head against the wall' . I'm getting to the stage where I keep asking myself do I really need the problems associated with learning new stuff to the point of being comfortable with it if the financial rewards at the end don't equate to the efforts of learning it.
    I don't really enjoy web development if truth is known. I come from a Graphic Design background which I much prefer but somehow got side tracked and pushed in this direction and there's no way back now, lol. Whilst I concede Web Development is much more exciting its also 100 times more complex/difficult and the skills needed are considerably more.
    Your example looks interesting and I should think I could pick it up reasonably easily given I work with php which uses variables on a similar basis.

Maybe you are looking for