Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

HTML Bullet point with no indent

Tags:

html

inline

I'm creating an html email and want to create bullet points without indent. Because it's an email it has to be html and inline CSS. Is there a way to edit your bullet settings? These are multi line bullets.

like image 984
Matt Bingham Avatar asked Apr 08 '14 15:04

Matt Bingham


2 Answers

Just put • at the start of the line, instead of a list:

&bull; List item here<br />
&bull; Another list item here

Renders as:

• List item here
• Another list item here

This way you can be sure it will be consistent across email clients.

like image 82
Andy Avatar answered Oct 03 '22 16:10

Andy


You can assign a choice of two properties to alter position of bullet points: list-style-position: outside; list-style-position: inside;

Then adjust padding accordingly.

See this example on Codepen.

You will still need to deal with display differences within individual email clients however.

like image 45
slaterio Avatar answered Oct 03 '22 15:10

slaterio