Webpage float issue

Discussion in 'Web Design and Development' started by m3kilpat, Aug 10, 2009.

  1. m3kilpat macrumors regular

    Jul 6, 2009
    I'm usually good at css layouts but I'm having an issue. I have 2 sections, each left floated. The first column is a nav bar with a width of 140px, the second area I want to fill up and adjust according to screen size. The issue is that I want it to fill the rest of the area, but when I set a max width, say 85%, when I make the screen smaller, the div keeps the max size and just moves to under the nav bar. It's not actually dynamically shrinking off of screen size. Any ideas?
  2. angelwatt Moderator emeritus


    Aug 16, 2005
    What did you set the width as? You mentioned a max-width, but you also need to specify a regular width too.
  3. m3kilpat thread starter macrumors regular

    Jul 6, 2009
    Nevermind I figured it out. I had widths set as well. But I just made the right content area not a float and put a left margin past the navbar. All good now.

Share This Page