Reputation: 35090
How can I add such an indentation in CSS?
Upvotes: 1
Views: 570
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;
}
You will see an issue when the span starts a new line as exhibited in the jsfiddle above
Upvotes: 1