Grow your CSS skills. Land your dream job.

elements rearranging when the browser resizes

  • # March 9, 2013 at 3:52 pm

    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](http://codepen.io/Isuru-Nanayakkara/pen/hcasI “”).

    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?

    # March 9, 2013 at 4:03 pm

    change the width to 33.33%

    # March 9, 2013 at 4:21 pm

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

    # March 9, 2013 at 4:36 pm

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

    # March 9, 2013 at 4:39 pm

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

Viewing 5 posts - 1 through 5 (of 5 total)

You must be logged in to reply to this topic.

*May or may not contain any actual "CSS" or "Tricks".