treehouse : what would you like to learn today?
Web Design Web Development iOS Development

[Solved] elements rearranging when the browser resizes

  • I have a large div with 3 divs inside it. The inner divs has same widths and they should fill up the large outer div. Please see the here.

    My problem is when I resize the browser, the inner divs just break the formation and appear under each one. How can I have them fixed even when the browser resizes?

    And also, since I'm hardcoding the widths of the inner divs here, I was wondering is here a way to divide the large div's width into 3 parts using CSS somehow?

  • change the width to 33.33%

  • Thanks a lot, man. I suppose percentages and fixed values cannot be used together, right?

  • it depends - you could max-width a fixed value... what are you trying to accomplish?

  • Ah okay. This is what I wanted to accomplish. :) Its all good. Thanks again