+ Reply to Thread
Results 1 to 3 of 3

Thread: Left Navigation Issue

  1. #1
    Barn Frequenter BLaaaaaaaaaarche will become famous soon enough BLaaaaaaaaaarche will become famous soon enough BLaaaaaaaaaarche's Avatar
    Join Date
    Mar 2008
    Posts
    188
    Rep Power
    5

    Left Navigation Issue

    I am having an issue trying to create a layout with the left navigation being 175px wide and the right side stretching 100%. Whenever I set the table width, or the div width, on the right side to 100%, it always overflows and drops below the div on the left. Does anyone have any code that alleviates this problem? I am sure it is something very simple that I am doing wrong.
    "You'll never be as perfect as BLaaaaaaaaarche."

  2. #2
    The Barnfather jmurrayhead has much to be proud of jmurrayhead has much to be proud of jmurrayhead has much to be proud of jmurrayhead has much to be proud of jmurrayhead has much to be proud of jmurrayhead has much to be proud of jmurrayhead has much to be proud of jmurrayhead has much to be proud of jmurrayhead has much to be proud of jmurrayhead has much to be proud of jmurrayhead's Avatar
    Join Date
    Mar 2008
    Location
    Reston, VA
    Posts
    4,547
    Blog Entries
    9
    Real Name
    Jason
    Rep Power
    22

    You can't have a 100% width in one column and expect it to be on the same "line" as the another column. 100% width will take up 100% of that space. I have something similar, but I use, for example, 12em for the left column and then 80% for the right column. You will have to use the same principle.
    jmurrayhead
    If you agree, give me rep.
    If you like it here...throw us a few bones to help support us.


  3. #3
    Administrator richyrich is a splendid one to behold richyrich is a splendid one to behold richyrich is a splendid one to behold richyrich is a splendid one to behold richyrich is a splendid one to behold richyrich is a splendid one to behold richyrich is a splendid one to behold richyrich's Avatar
    Join Date
    Mar 2008
    Location
    Somewhere only we know...
    Posts
    3,207
    Blog Entries
    14
    Real Name
    Rich
    Rep Power
    14

    See if this works:

    Code:
    <div id="left">
    left content
    </div>
    <div id="right">
    right content
    </div>
    
    Code:
    #left
    {
        float:left;
    width:175px;
    }
     
    #right
    {
     overflow:hidden;
    zoom:1;
    } 

    I think that should stretch the right hand div to fill the available space.

+ Reply to Thread

Similar Threads

  1. Web App Navigation
    By Rebelle in forum HTML & CSS Help
    Replies: 9
    Last Post: July 13th, 2009, 05:06 PM
  2. display issue
    By todd2006 in forum ASP Development
    Replies: 4
    Last Post: January 23rd, 2009, 05:55 PM
  3. Set left margin when exporting to word?
    By Rebelle in forum HTML & CSS Help
    Replies: 4
    Last Post: December 10th, 2008, 04:07 PM
  4. SQL Left Outer Join Problem
    By ubundom in forum Database Design Help
    Replies: 1
    Last Post: October 24th, 2008, 10:19 AM

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

SEO by vBSEO