Im trying to have a right-aligned text with a border that starts where the text starts, on the left.
Problems :
- If I use a span, the border does not encapsulate multiple lines (border-top/bottom get messed up).
- If I use a span with inline-block, it kind of becomes similar to a div, the border on the left starts on the left side and not where the text starts.
- If I use a paragraph, it's just like a div as well.
- If I use a div, border is on the left as well.
Basically, what I would like is (where | is the left border):
| Text
But I only manage to get :
| Text