Support » Plugin: Stock Ticker » Insert new line in Span

  • Resolved ashrafkotb

    (@ashrafkotb)


    How to insert a new line using Span? I’m trying to use a template as:

    <span style=”display:inline-block; width:20%”>Symbol: %symbol%</span>
    <span style=”display:inline-block; width:30%”>%company%</span>
    <span style=”display:inline-block; width:5%”>$%price%</span>
    <span style=”display:inline-block; margin-left:20px”>%change%</span>
    <span style=”margin-left:20px”>%changep%</span>

    But I need every span to be on a separate line.

    Thanks

Viewing 1 replies (of 1 total)
  • Plugin Author Aleksandar Urošević

    (@urkekg)

    Hi @ashrafkotb

    I suppose you resolved this by setting display: block instead of inline-block, right?

    Btw, consider setting a custom CSS instead of injecting inline CSS to each ticker item. You can target nested span selector like .stock-ticker-wrapper .stock-ticker-container .stockticker .sqitem span {display: block}

    Kind regards,
    Alex

Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.