Register

If this is your first visit, please click the Sign Up now button to begin the process of creating your account so you can begin posting on our forums! The Sign Up process will only take up about a minute of two of your time.

Results 1 to 3 of 3
  1. #1
    Junior Member
    Join Date
    Oct 2014
    Posts
    2
    Member #
    40383

    fluid design not working

    For some reason my fluid design isn't working properly, when scaling the site, the white background disapppear and the css tables are no longer aligned next to eachother (left, main and right), i'm quite new to css3 so I can't figure out what my error is (some of the code are auto generated by dreamweaver.

    HTML code:

    <!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>FRISK</title>
    <link href="boilerplate.css" rel="stylesheet" type="text/css">
    <link href="css/css.css" rel="stylesheet" type="text/css">
    <style type="text/css">
    body,td,th {
    font-size: medium;
    color: #000;
    font-family: Segoe, "Segoe UI", "DejaVu Sans", "Trebuchet MS", Verdana, sans-serif;
    }
    body {
    background-color: #CCC;
    }
    a {
    color: #000;
    }
    a:link {
    text-decoration: none;
    }
    a:visited {
    text-decoration: none;
    color: #000000;
    }
    a:hover {
    text-decoration: none;
    color: #000;
    }
    a:active {
    text-decoration: none;
    color: #000;
    }
    </style>
    <!--
    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>
    </head>
    <body>
    <div class="gridContainer clearfix">
    <div id="div1" class="fluid"><img src="images/logo.jpg" alt=""/></div>
    <div id="navigation" class="fluid">
    <div align="center">| <a href="index.html">forsiden</a> | <a href="om.html">om frisk</a> | <a href="aktiv.html">aktiviteter</a> | <a href="galleri.html">galleri</a> | <a href="nyheder.html">nyheder</a> | <a href="links.html">links</a> |</div>
    <div id="left" class="fluid">
    <blockquote>
    <p>hfshfshfdshfhsdkfhsdjkfhsfjsggfjsgfsdgffjsgjf </p>
    </blockquote>
    </div>
    <div id="main" class="fluid">
    <p>fhfksdhfsdfsdfgsdfgsjgfsgdhdkhghdfgdfhgdhkdhfsf hsdjhsdhfshjdshfjsdfsdhfkjshfsdhfskhksdhshfkshfkjs hfshh'</p>
    <p>hjsdhfshfsdhfkjshfkhsfhsdh</p>
    </div>
    <div id="right" class="fluid">
    <blockquote>
    <p>sdsadgasgdasgdsagjh</p>
    </blockquote>
    </div>
    </div>
    </div>
    </body>
    </html>

    and css code:

    @charset "utf-8";
    /* Simple fluid media
    Note: Fluid media requires that you remove the media's height and width attributes from the HTML
    Fluid Images An A List Apart Article
    */
    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
    Responsive Web Design An A List Apart Article

    and Golden Grid System by Joni Korpi
    Golden Grid System
    */

    .fluid {
    margin-left: 0;
    width: 100%;
    float: left;
    display: block;
    }

    .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;
    }
    #div1 {
    }
    #navigation {
    width: 100%;
    }
    .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: center;
    margin-left: auto;
    }
    #div1 {
    }
    #navigation {
    position: static;
    height: auto;
    width: 100%;
    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: center;
    margin-left: auto;
    }
    #div1 {
    }
    #navigation {
    background-color: #FFF;
    margin-left: 0;
    position: static;
    height: auto;
    width: 100%;
    }
    #left {
    background-color: #FFF;
    width: 20%;
    word-break: break-all
    }
    #main {
    background-color: #FFF;
    width: 60%;
    word-break: break-all;
    }
    #right {
    background-color: #FFF;
    width: 20%;
    word-break: break-all;
    }
    .zeroMargin_desktop {
    margin-left: 0;
    }
    .hide_desktop {
    display: none;
    }
    }

    I hope someone can help me out here

  2.  

  3. #2
    Unpaid WDF Intern TheGAME1264's Avatar
    Join Date
    Dec 2002
    Location
    Not from USA
    Posts
    14,483
    Member #
    425
    Liked
    2783 times
    Upload it somewhere and post a link to the page, please, so we can see what's going on. On the surface, it sounds like an uncleared float somewhere.
    If I've helped you out in any way, please pay it forward. My wife and I are walking for Autism Speaks. Please donate, and thanks.

    If someone helped you out, be sure to "Like" their post and/or help them in kind. The "Like" link is on the bottom right of each post, beside the "Share" link.

    My stuff (well, some of it): My bowling alley site | Canadian Postal Code Info (beta)

  4. #3
    Junior Member
    Join Date
    Oct 2014
    Posts
    2
    Member #
    40383
    I don't have a server for it yet, so unfortunately it's not possible for me to upload it


Remove Ads

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT -6. The time now is 06:36 AM.
Powered by vBulletin® Version 4.2.3
Copyright © 2019 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: PurevB.com