Pricing Blog

Span Text going out of div

  • fuelmeup-1241153876837662852

    AY EYE

    1 year ago

    I have a div that holds an image and some span text, but the text is spilling out of the div when i preview the live link, but in the editor it doesnt do that.

    Here's the editor and live images.

    ANyone know why it's doing this?
    1241153877487911042-image.png
    1241153878137901116-image.png
  • fuelmeup-1241155505565466716

    AY EYE

    1 year ago

    Is the proper way to fix this to just put a max width on the span?

    Or is there a better way to solve this issue. I put a max width of 256 on the span and it worked just not sure if thats the best way
  • victoruxui-1241160943824670810

    Victor Giron

    1 year ago

    Can you select the description span to see the properties?
  • fuelmeup-1241162810227032075

    AY EYE

    1 year ago

    Yes one sec @Victor Giron
  • 1241162900295516170-image.png
  • 1055706507641094285-@AY EYE
    victoruxui-1241165152791826523

    Victor Giron

    1 year ago

    I sent you a dm
    👍1
  • lucasg-1241179903513202698

    Lucas G

    1 year ago

    Try setting the span to flex: 1
    🙌1
  • fuelmeup-1241185153523384401

    AY EYE

    1 year ago

    Thats what fixed it, thanks @Lucas G
  • and thanks @Victor Giron for telling me that earlier in dm