Forums

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

Home Forums CSS [Solved] Line break with two spans

  • This topic is empty.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #205793
    wagneropaz
    Participant

    Hi guys!

    I’m having trouble with this scenario:

    There’s two spans, if the size of container is enought to acomodate both in the same line, the second span floats to the right, if not I need the second to be bellow the first.

    Someone can help me?

    #205796
    shaneisme
    Participant

    A <span> is an inline object, so you might not want to do that at all.

    What you probably want to do is give a block element (eg. <div>) a float: left and float: right along with a set width. When they meet up they will automatically pop down.

    #205797
    Paulie_D
    Member
    #205863
    wagneropaz
    Participant

    Thank you very much shaneisme!
    This comment about span made my day!

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