Forums

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

Home Forums CSS Fluid side by side elements. Not so easy. Help me please !

  • This topic is empty.
Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #42080
    RayHell
    Member

    I’m trying to do something that may seem simple but I cannot find a good solution.

    2 elements side by side ( div, span, your choice)

    Left element must takes 66% of the space

    Right element takes 33% of the space but need to have a min-width of 300px

    The problem is that when I reach 300px the right element goes under the left one.

    When the right element reach 300px I want it to stay there and the left one to start shrinking.

    Thank you for your help

    #121366
    RayHell
    Member

    Works great thanks.
    Too bad it’s not working on IE7
    Must try to find a work around.

    #121370
    Paulie_D
    Member

    Can’t you just use a 900px media query?

    #121374
    RayHell
    Member

    ChrisP: Yeah I’ve tried it. It doesn’t behave very well..

    Paulie_D: Could work if it was used full screen, but it’s gonna be use in different sized container. Thanks anyway.

    #121376
    dfogge
    Participant

    im with @ChrisP on this. if old IE is messing me up i dont hesitate to serve them a stripped down style sheet.

    the future is now.

    #121413
    Paulie_D
    Member

    >Paulie_D: Could work if it was used full screen, but it’s gonna be use in different sized container.

    Perhaps you need to show us your design so we can better assist you.

    #121435
    wolfcry911
    Participant

    [Here’s another version](http://codepen.io/wolfcry911/full/IfsDp “”) without display: table-cell

    #121754
    RayHell
    Member

    wolfcry911 This is exactly what I need. Thank you so much

    Thank you all for your help

Viewing 8 posts - 1 through 8 (of 8 total)
  • The forum ‘CSS’ is closed to new topics and replies.