Search code examples
htmlcsssassword-wrapline-breaks

Add margin or fix the element beloif h3 or any other tag is naturally breaking-line


Hi everyone hope you are doing great,

I'm sending this message because i'm fixing an issue..

I have a <h3> tag who is breaking line but not everytime only when he is too long (logic :p) and sometimes i have other who are not but i would like to keep the same alignment between them

In this JsFiddle you'll see there is 3 card__content and i would like the COMING - 01/03 to 21/03 middle stay even if there is no line break and fixed at the same level of the others am i missing something ?

https://jsfiddle.net/Morraycage/gdqekrvo/38/

Thank you by advance :D


Solution

  • flex is awesome.

    .card__content {
        justify-content: space-between;
    }
    

    https://jsfiddle.net/sawacrow/2or8u7g4/1/