diff options
author | Joris Guyonvarch | 2015-02-19 00:56:36 +0100 |
---|---|---|
committer | Joris Guyonvarch | 2015-02-19 00:56:36 +0100 |
commit | 77f5d045e212a3d40f12f004ab23b01f425775c4 (patch) | |
tree | 98a5f1ad31298425f4a4aa664e9f00c0530705d1 | |
parent | d2788afdf5ae553df909e5a0403a5ed9db25baf8 (diff) |
Styling ordered lists
-rw-r--r-- | menu.css | 9 | ||||
-rw-r--r-- | style.css | 37 |
2 files changed, 28 insertions, 18 deletions
@@ -1,3 +1,8 @@ +nav { + position: relative; + z-index: 1; +} + nav > ul { width: 900px; display: table; @@ -38,8 +43,8 @@ nav li { } nav li:before { - content: ""; - margin-left: 0px; + content: "" !important; + margin-left: 0px !important; } nav a { @@ -62,27 +62,18 @@ img { ul { margin-bottom: 30px; + counter-reset: list; } ol { margin-bottom: 30px; + counter-reset: list; } -ul ul { - margin-bottom: 0px; -} - -ul ol { - margin-bottom: 0px; -} - -ol ul { - margin-bottom: 0px; -} - -ol ol { - margin-bottom: 0px; -} +ul ul { margin-bottom: 0px; } +ul ol { margin-bottom: 0px; } +ol ul { margin-bottom: 0px; } +ol ol { margin-bottom: 0px; } li { margin-left: 30px; @@ -91,7 +82,7 @@ li { text-align: justify; } -li:before { +ul > li:before { content: "•"; color: #F52F8A; position: relative; @@ -100,6 +91,20 @@ li:before { font-size: 18px; } +ol li { + counter-increment: list; + position: relative; +} + +ol > li:before { + content: counter(list) "."; + color: #F52F8A; + position: absolute; + left: -2.5em; + width: 2em; + text-align: right; +} + a { text-decoration: none; color: darkblue; |