Immediately show you what I get and what I need to get!

Что получилось

What I want to get

The essence of the question: How to make the string elements (a, span) respond normally to padding and not carry it with you to the next line .. in fact, as shown in the What do I want to get ?

    1 answer 1

    For line elements that need to install padding , write in the CSS file display: inline-block;

    For example:

    span { display: inline-block; padding: 10px; } 

    Here in more detail.

    UPD: http://jsfiddle.net/Alex83/QVbS7/

    Will this option work?

    • Option with display: inline-block does not fit here is the result - Niro
    • See the answer update. - Astor
    • The variant with span is one of the first ones I considered .. but here it is already binding with br and splitting the text of the link into a span programmatically. But thanks a lot! - Niro