Forums

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

Home Forums CSS Bootstrap grid breaks when text wraps

  • This topic is empty.
Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #209909
    matthisco
    Participant

    Markup:

        `<div key={this.props.attendanceCode.code} className="col-md-4 col-sm-3 col-xs-4">
                <div className="attendance-code-key-item well">
                    <div className="col-md-11 col-sm-11 col-xs-11  ">
                        <strong>{this.props.attendanceCode.code}</strong> {this.props.attendanceCode.description}
                    </div>
                    <div className="col-md-1 col-sm-1 col-xs-1 ">
                        <StatusIndicator trueIcon="check" falseIcon="times"
                                         value={this.props.attendanceCode.isStandardCode} />
                    </div>
                </div>
            </div>
    

    `

    Result:

    Alt

    Any ideas?

    #209910
    Paulie_D
    Member

    A Codepen demo would be more useful than the bare code.

    #209911
    matthisco
    Participant
    #209912
    matthisco
    Participant

    Thanks codepen above ^^^

    #209913
    Paulie_D
    Member

    This I assume is ReactJs (judging by the data-reactids all over the place).

    That doesn’t seem to be included in the Codepen.

    Plus Bootstrap usually has a row class.

    #209914
    matthisco
    Participant

    Thanks for the reply.

    I’m using react to map the props to each component, how would I insert each row?

    https://jsfiddle.net/37mAD/52/

    #209915
    Paulie_D
    Member

    how would I insert each row?

    I have no idea but I’d assume that this would be in the docs somewhere.

    Otherwise, manually.

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