[ARCHIVED] Hanging Indents: code-snippet

G_Petruzella
Community Champion

I'd posted this in the old Community and it seemed some people liked/used it, so here it is again - how to make hanging indents!

<p style="margin-left: 20px; text-indent: -20px;">Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed placerat accumsan viverra.</p>

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed placerat accumsan viverra. Nam faucibus suscipit nunc vitae iaculis. Morbi in pretium leo. Integer fermentum at tortor et dapibus. Aliquam quam magna, mollis sed leo at, pretium auctor nulla. Vestibulum ac est eu mi aliquet ultricies. Phasellus condimentum tristique mi, eu aliquet metus tincidunt quis. Duis egestas blandit nunc, eu lacinia ex cursus ut. Vivamus rhoncus ipsum orci, in gravida dui pretium id. Vivamus a justo consequat, laoreet lectus ut, scelerisque lacus. Interdum et malesuada fames ac ante ipsum primis in faucibus. Pellentesque et augue eget nisl semper volutpat sed ut urna. Aliquam id gravida felis.

Labels (1)
Users who also had this question