Skip to main content
added 10 characters in body
Source Link
Chuck Le Butt
  • 49k
  • 62
  • 213
  • 299

The easiest and cleanest way, without any hacks, is to just to indent the ul (or ol), like so:

ol { padding-left: 40px; // Or whatever padding your font size needs list-style-position: outside; // Usually not needed, but just incase you've changed it elsewhere } 

This gives the same result as the accepted answer: https://jsfiddle.net/5wxf2ayu/

Or with Tailwind:

list-outside list-disc pl-5 

Screenshot:

enter image description hereenter image description here

Thanks to the commenters @John and @Alex

The easiest and cleanest way, without any hacks, is to just to indent the ul (or ol), like so:

ol { padding-left: 40px; // Or whatever padding your font size needs list-style-position: outside; // Usually not needed, but just incase you've changed it elsewhere } 

This gives the same result as the accepted answer: https://jsfiddle.net/5wxf2ayu/

Or with Tailwind:

list-outside list-disc pl-5 

Screenshot:

enter image description here

Thanks to the commenters @John and @Alex

The easiest and cleanest way, without any hacks, is to just to indent the ul (or ol), like so:

ol { padding-left: 40px; // Or whatever padding your font size needs list-style-position: outside; // Usually not needed, but just incase you've changed it elsewhere } 

This gives the same result as the accepted answer: https://jsfiddle.net/5wxf2ayu/

Or with Tailwind:

list-outside pl-5 

Screenshot:

enter image description here

Thanks to the commenters @John and @Alex

added 116 characters in body
Source Link
Chuck Le Butt
  • 49k
  • 62
  • 213
  • 299

The easiest and cleanest way, without any hacks, is to just to indent the ul (or ol), like so:

ol { padding-left: 40px; // Or whatever padding your font size needs  list-style-position: outside; // Usually not needed, but just incase you've changed it elsewhere } 

This gives the same result as the accepted answer: https://jsfiddle.net/5wxf2ayu/

Or with Tailwind:

list-outside list-disc pl-5 

Screenshot:

enter image description here

Thanks to the commenters @John and @Alex

The easiest and cleanest way, without any hacks, is to just to indent the ul (or ol), like so:

ol { padding-left: 40px; // Or whatever padding your font size needs } 

This gives the same result as the accepted answer: https://jsfiddle.net/5wxf2ayu/

Screenshot:

enter image description here

The easiest and cleanest way, without any hacks, is to just to indent the ul (or ol), like so:

ol { padding-left: 40px; // Or whatever padding your font size needs  list-style-position: outside; // Usually not needed, but just incase you've changed it elsewhere } 

This gives the same result as the accepted answer: https://jsfiddle.net/5wxf2ayu/

Or with Tailwind:

list-outside list-disc pl-5 

Screenshot:

enter image description here

Thanks to the commenters @John and @Alex

added 1 character in body
Source Link

The easiest and cleanest way, without any hacks, is to just to indent the ul (or ol), like so:

ol { padding-left: 40px; // Or whatever padding your font size needs } 
ol { padding-left: 40px; // Or whatever padding your font size needs } 

This gives the same result as the accepted answer: https://jsfiddle.net/5wxf2ayu/

Screenshot:

enter image description here

The easiest and cleanest way, without any hacks, is to just to indent the ul (or ol), like so:

ol { padding-left: 40px; // Or whatever padding your font size needs } 

This gives the same result as the accepted answer: https://jsfiddle.net/5wxf2ayu/

Screenshot:

enter image description here

The easiest and cleanest way, without any hacks, is to just to indent the ul (or ol), like so:

ol { padding-left: 40px; // Or whatever padding your font size needs } 

This gives the same result as the accepted answer: https://jsfiddle.net/5wxf2ayu/

Screenshot:

enter image description here

deleted 104 characters in body
Source Link
Chuck Le Butt
  • 49k
  • 62
  • 213
  • 299
Loading
edited body
Source Link
Chuck Le Butt
  • 49k
  • 62
  • 213
  • 299
Loading
added 10 characters in body
Source Link
Chuck Le Butt
  • 49k
  • 62
  • 213
  • 299
Loading
added 57 characters in body
Source Link
Chuck Le Butt
  • 49k
  • 62
  • 213
  • 299
Loading
[Edit removed during grace period]
Source Link
Chuck Le Butt
  • 49k
  • 62
  • 213
  • 299
Loading
edited body
Source Link
Chuck Le Butt
  • 49k
  • 62
  • 213
  • 299
Loading
Added screenshot
Source Link
Chuck Le Butt
  • 49k
  • 62
  • 213
  • 299
Loading
deleted 23 characters in body
Source Link
Chuck Le Butt
  • 49k
  • 62
  • 213
  • 299
Loading
added 23 characters in body
Source Link
Chuck Le Butt
  • 49k
  • 62
  • 213
  • 299
Loading
added 60 characters in body
Source Link
Chuck Le Butt
  • 49k
  • 62
  • 213
  • 299
Loading
Source Link
Chuck Le Butt
  • 49k
  • 62
  • 213
  • 299
Loading