Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS elements rearranging when the browser resizes

  • This topic is empty.
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #43274
    isuru
    Participant

    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?

    #127615
    wolfcry911
    Participant

    change the width to 33.33%

    #127617
    isuru
    Participant

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

    #127618
    wolfcry911
    Participant

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

    #127620
    isuru
    Participant

    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.