cancel
Showing results for 
Search instead for 
Did you mean: 

Change the height of FlexBox based on content

0 Kudos

Hallo,

ich habe eine FlexBox die Standardmäßig eine Höhe von 100px hat. Doch in diese Flexbox kommen drei weitere FlexBoxen und in einer dieser FlexBoxen befindet sich ein Panel, welches Texte beinhaltete. Die Texte sind mal kurz, aber auch mal Lang. Wenn jetzt längere Texte kommen, brechen die Zeilen Richtig ab in der FlexBox, aber die Größe muss halt angepasst werden.

Daher meine Frage gibt es eine Möglichkeit von dem Panel oder dem Content des Panels eine Art Höhe zurück zu bekommen die ich der übergeordneten FlexBox zuweisen kann. Damit die Größe je nach textlänge varriert?

former_member709916
Participant
0 Kudos

Please try and apply CSS. For example:

.classBox {
    height: 200px !important;
    width: 1000px !important;
    font-size: 2.5rem !important;
}
0 Kudos

Hello nbcarib,

thank you for your Comment. But i dont want a fix heigt of the FlexBox i want a dynamic height. If the text bigger (more lines) than i want change the size. I must read the lines of the text inside the FlexBox, but i dont know how.

Greetz

former_member709916
Participant
0 Kudos

Thank you for clarifying the question - I used only Google translate:)

Did you try to apply class="fixFlexHorizontal"?

Otherwise please check this link below, hopefully it will help with correct CSS class.

https://stackoverflow.com/questions/50215813/flexbox-container-for-dynamic-content

0 Kudos

I don't want a fix size. The size must be changeable from the Text height.

Accepted Solutions (0)

Answers (0)