Forums

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

Home Forums CSS Issue in Flex with text

  • This topic is empty.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #270066
    yoyo
    Participant

    Guys

    I am facing a issue in flex with <sup> text. I have used display:flex in child elements in order to align them vertically middle so the <sup> text itself is a child of a flex element which makes them aligned differently. any ideas to make the <sup> text asusual at the end of text ?

    Here is the pen.

    Thanks

    #270081
    Beverleyh
    Participant

    Enclose all the stuff inside p in another element so that the wrapper element becomes the child;

    <p> 
    <span>text text text <sup>xxx</sup></span>
    </p>
    

    sup would now be a child of a flex-child, and therefor out of the scope of this flex context.

    #270082
    yoyo
    Participant

    Yeah working. Thanks @Beverleyh

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