Forums

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

Home Forums CSS [Solved] Dynamically loading Options and wrapping content

  • This topic is empty.
Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #189777
    ESDictor
    Participant

    I have a portion of a form with a series of Questions/Answers, some of which are SELECT dropdowns. These are loaded with a single “dummy” OPTION, and the actual options are then loaded by an ajax call.

    One of these is now causing some wrapping to occur. I have mocked up the situation in this codepen (I’m not sure how to embed that unfortunately): http://codepen.io/esdictor/pen/wBKyzv

    Clicking the “Click Me!” button will emulate the loading of a long item that causes the wrapping.

    Thanks in advance for any help, and feel free to tell me how to embed my codepen here :)

    Evan

    #189779
    Paulie_D
    Member

    Can’t you just center?

    http://codepen.io/Paulie-D/pen/pvjaLP

    #189783
    ESDictor
    Participant

    Can’t you just center?

    Unfortunately, I can’t the question/answer pairs are in a dockable “strip” on the left side of the page. The questions are right-aligned next to the left-aligned answers.

    I wish it were that simple for me. I need to come up with a way to stop the content from wrapping in the li tag.

    Evan

    #189784
    Paulie_D
    Member

    Well you could put a max width on the select…it won’t affect the options which will be a wide as they need to be.

    http://codepen.io/Paulie-D/pen/vENdoY

    Not sure there is a ‘complete’ answer given the limitations you’re imposing.

    #189785
    ESDictor
    Participant

    I’d be fine with scrollbars if that helps.

    Evan

    #189788
    Paulie_D
    Member

    I’d be fine with scrollbars if that helps.

    Not really.

    #189789
    ESDictor
    Participant

    Not really.

    Yeah .. that’s what I was getting through my own experimentation trying to fix this. I can’t help but think there’s gotta be a way though (ever the optimist!).

    Evan

    #189791
    Paulie_D
    Member
    #189797
    ESDictor
    Participant

    Still working on getting this to work correctly in my application, but it certainly works how I need in codepen.

    Not sure how to mark the question as solved, but it is.

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