How can I put <span> and <a> element in one line using display : block, inline or inline-block?

Hi, sorry that’s not it.
I need text4 , text5 to be on one line and text6, text7 on another line.

Did I say “width element”? Oops, I meant “width property”. The CSS width property forces an element to be a certain width. So you could give .text4 and .text5 each a width of 50% (or actually, just under 50%) and then they would take up the entire horizontal width of the page, forcing .text6 down to the next line. Or you could make the width of .text4 take up just enough space needed for its line of text (using rem units) and then make .text5 take up the rest of the width.

1 Like

Thank you my friend! It worked, exactly how it should be!
I appreciate your help, it was really awesome! <3

1 Like

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.