Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New to the CF scene
    Join Date
    Aug 2012
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    3 column css layout, multiple browser problems

    I created a 3 column css layout for my website and it works fine on safari but every other web browser it doesn't load properly (the third column, far left, gets kicked down below body div).

    this is the css file:


    .sidebar1 {
    float: left;
    width: 180px;
    padding: 6px;
    border-right-width: thin;
    border-right-style: solid;
    border-right-color: #999;
    background-color: #ffffff;
    height: 2000px;


    }
    .content {
    width: 590px;
    float: left;
    font-size: 14px;
    color: #494949;
    padding: 0px 5px 0px 5px;
    text-align: left;
    }
    .sidebar2 {
    float: right;
    width: 190x;
    border-left-width: thin;
    border-left-style: solid;
    border-left-color: #999;
    background-color: #ffffff;
    padding-top: 10px;
    padding-right: 0;
    padding-bottom: 10px;
    padding-left: 0;
    height: 2000px;
    }

    /* ~~ This grouped selector gives the lists in the .content area space ~~ */
    .content ul, .content ol {
    padding: 0 15px 15px 40px; /* this padding mirrors the right padding in the headings and paragraph rule above. Padding was placed on the bottom for space between other elements on the lists and on the left to create the indention. These may be adjusted as you wish. */
    color: #494949;
    font-size: 14px;
    }

    /* ~~ The footer styles ~~ */
    .footer {
    padding: 10px 0;
    position: relative;/* this gives IE6 hasLayout to properly clear */
    clear: both; /* this clear property forces the .container to understand where the columns end and contain them */
    font-family: Verdana, Geneva, sans-serif;
    font-size:14px;
    background-color: #e1ebf2;
    text-align: center;
    border-top-width: thin;
    border-top-style: solid;
    border-top-color: #666;
    color: #333

    }

    /* ~~ Miscellaneous float/clear classes ~~ */
    .fltrt { /* this class can be used to float an element right in your page. The floated element must precede the element it should be next to on the page. */
    float: right;
    margin-left: 8px;
    }
    .fltlft { /* this class can be used to float an element left in your page. The floated element must precede the element it should be next to on the page. */
    float: left;
    margin-right: 8px;
    }
    .clearfloat { /* this class can be placed on a <br /> or empty div as the final element following the last floated div (within the .container) if the .footer is removed or taken out of the .container */
    clear:both;
    height:0;
    font-size: 1px;
    line-height: 0px;
    }

    Any advice would be great, thanks

  • #2
    Supreme Master coder! abduraooft's Avatar
    Join Date
    Mar 2007
    Location
    N/A
    Posts
    14,858
    Thanks
    160
    Thanked 2,223 Times in 2,210 Posts
    Blog Entries
    1
    It's not possible to track the issues in your code without seeing the full CSS+HTML. Anyway, have a look at http://bonrouge.com/3c-hf-fluid-lc.php or http://bonrouge.com/3c-hf-fixed.php to see how to make good 3 column layouts.
    The Dream is not what you see in sleep; Dream is the thing which doesn't let you sleep. --(Dr. APJ. Abdul Kalam)

  • #3
    New to the CF scene
    Join Date
    Aug 2012
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Thanks

    Thanks for your help. I noticed at the bottom of the code you provided it has a IE 6 hack...that's obviously whats getting me.


  •  

    Tags for this Thread

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •