ol text align

Solutions on MaxInterview for ol text align by the best coders in the world

showing results for - "ol text align"
Alberto
23 Nov 2018
1.center {
2  text-align: center;
3  list-style-position: inside;
4}
5
6<h4 align="center">HEADLINE</h4>
7<ol class="center">
8  <li>First Item</li>
9</ol>
Tracey
26 Jun 2016
1<!DOCTYPE html>
2<html>
3<head>
4  <meta charset="utf-8">
5  <title>align</title>
6  <style>
7    li {list-style-position: inside;}
8  </style>
9</head>
10<body>
11<ol>
12  <li style="text-align: left">item 1</li>
13  <li style="text-align: center">item 2</li>
14  <li style="text-align: right">item 3</li>
15</ol>
16</body>
17</html>
18