Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

m3kilpat

macrumors regular
Original poster
Jul 6, 2009
119
0
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?
 
What did you set the width as? You mentioned a max-width, but you also need to specify a regular width too.
 
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.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.