Forums

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

Home Forums CSS Line-height not working inside span

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

    span.aidanews2_text{
    font-size:13px;
    font-family:arial;
    line-height:12px;

    }


    PEKIN — China inaugura el, miércoles la línea de ferrocarril de alta velocidad…

    Line height doesn’t work… I even try doing line-height:8px for testing purposes but, noticed it doesn’t work inside that span block. I don’t know if it needs a p tag but, I don’t have control over that piece of code because is coming from a joomla extension.

    How can I fix the line height in this situation…
    Thanks in advanced for your time and help.

    #119101
    TreeRoot
    Participant

    Three options: 1) use a div instead of a span, 2) add “display: block” to force it to act like a block element, or 3) add “display: inline-block” to make it act like an block element while continuing to flow inline alongside its sibling text (assuming there is sibling text).

    #119102
    landysaccount
    Participant

    I was able to edit the extension code and added a p tag between span… That worked.

    Thanks TreeRoot

    #119105
    EkingRDL
    Member

    Use inline-block if you want it on the same line

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