János
János

Reputation: 35090

CSS indent line to the last line

How can I add such an indentation in CSS?

enter image description here

Upvotes: 1

Views: 570

Answers (1)

switz
switz

Reputation: 25198

As far as I know, there is no way to do what you're asking in pure CSS. The only solution I can think of is adding a span around the part you want pushed down, then setting the relative height to whatever your line-height is (in this case, 1em).

span {
 position: relative;
 top: 1em;
}

http://jsfiddle.net/ptZkc/1/

You will see an issue when the span starts a new line as exhibited in the jsfiddle above

Upvotes: 1

Related Questions