Follow us on...
Follow us on Twitter Follow us on Facebook
Register
Results 1 to 2 of 2
  1. #1
    TommyWillB's Avatar
    TommyWillB is offline Registered User
    Join Date
    Mar 2001
    Location
    ol' Gay San Francisco
    Posts
    2,025
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Div's CSS: cross-browser question...

    Okay, I'm about 6 steps into an effort to redo a section of my site... And while I swear I started out using a DIV/CSS based layout that worked in ALL browsers suddenly that is no longer the case.

    What I'm trying for is a navigation bar that stays fixed to the left... to the right of it are esentially 4 stacked areas:
    1) the top header should stay glued to the top.
    2) a middle content area that should flex reletive to the things around it
    3) the second-from the bottom thing stays glued to the bottom, but has a bottom margin to place it above the footer.
    4) the bottom footer should stay glued to the bottom.

    It works in all of my Mac browsers (Safari, Firefox, IE) as well as Firefox for windows. But IE 6.x for Windows insists on displaying all of the right-side elements way down the page... below the end of the left navigation. I simply can not force it to float/wrap to the right.

    Here is what I've got: http://digipix.jeffntom.com/TEMPLATE_UI-5.php

    Ignore the whiz-bang JavaScript stuff displaying the images, etc... and help me figure out what's up with my DIV/CSS?

    Here is the Div structure:
    Code:
        <div id="leftnav">        
                 ...leftnav stuff...
        </div>
        <div id="rightbody">
            <div id="header">            
                 1) Right-Top: ...header area...
            </div>
            <div id="content">            
                2) Right-Middle: ...large image area...  
            </div>
            <div id="thumbnails">
                 3) Right-Lower: ....image thumbnail area...
            </div>
            <div id="footer">
                4) Right-Bottom: ...footer area...
            </div>        
        </div>
    Here is the CSS:
    Code:
    #leftnav {
        margin: 0;
        padding: 0;
        position: fixed;
        top:0px;
        width: 200px;
        bottom: 1px; // this locks the div to the browser bottom (minus 1px)
        float: left;
        background:#cccccc;
        valign: bottom;
    }    
    
    /* this is a contain that holds everything except the left navitation */
    #rightbody {
        /* width: 100%; */
    }
    
        #header {
            position: fixed;
            top: 0px;
            margin-left: 212px;
            margin-right: 0px;
            background: #ffffff;
        }
        #content {
            margin-top: 60px;
            margin-left: 212px;
            margin-right: 0px;
            background: #ffffff;
        }
        #thumbnails {
            position: fixed;
            bottom: 51px;
            margin-left: 210px;
            margin-right: 10px;
            background: #ffffff;            
        }
        #footer {
            position: fixed;
            bottom: 0px;
            margin-left: 200px;
            margin-right: 10px; 
            background: #ffffff;        
        }
    TommyWillB
    27" iMac Intel Core i5
    TommyWillB.com hosted on Mac OS X 10.6.x / Apache 2.2.x / PHP 5.x

  2. #2
    HateEternal is offline Mac Metal Head
    Join Date
    Nov 2003
    Posts
    821
    Thanks
    0
    Thanked 1 Time in 1 Post
    If you haven't found a solution yet, IE's support of fixed is broken. Here is a hack

    http://web.tampabay.rr.com/bmerkey/e...ion-fixed.html

 

 

Bookmarks

Posting Permissions

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