Created
March 5, 2014 08:08
-
-
Save etownhooligan/9363097 to your computer and use it in GitHub Desktop.
A Pen by Matt West.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div id="page-wrapper"> | |
<h1>HTML List Demos</h1> | |
<h2>Ordered Lists</h2> | |
<code><pre> | |
<ol> | |
<li>Google Chrome</li> | |
<li>Internet Explorer</li> | |
<li>Mozilla Firefox</li> | |
<li>Safari</li> | |
<li>Opera</li> | |
</ol> | |
</pre></code> | |
<ol> | |
<li>Google Chrome</li> | |
<li>Internet Explorer</li> | |
<li>Mozilla Firefox</li> | |
<li>Safari</li> | |
<li>Opera</li> | |
</ol> | |
<h3>The <code>start</code> Attribute</h3> | |
<code><pre> | |
<ol <strong>start="3"</strong>> | |
<li>Google Chrome</li> | |
<li>Internet Explorer</li> | |
<li>Mozilla Firefox</li> | |
<li>Safari</li> | |
<li>Opera</li> | |
</ol> | |
</pre></code> | |
<ol start="3"> | |
<li>Google Chrome</li> | |
<li>Internet Explorer</li> | |
<li>Mozilla Firefox</li> | |
<li>Safari</li> | |
<li>Opera</li> | |
</ol> | |
<h3>The <code>reversed</code> Attribute</h3> | |
<code><pre> | |
<ol <strong>reversed</strong>> | |
<li>Google Chrome</li> | |
<li>Internet Explorer</li> | |
<li>Mozilla Firefox</li> | |
<li>Safari</li> | |
<li>Opera</li> | |
</ol> | |
</pre></code> | |
<ol reversed> | |
<li>Google Chrome</li> | |
<li>Internet Explorer</li> | |
<li>Mozilla Firefox</li> | |
<li>Safari</li> | |
<li>Opera</li> | |
</ol> | |
<h2>Unordered Lists</h2> | |
<code><pre> | |
<ul> | |
<li>Rucksack</li> | |
<li>Compass</li> | |
<li>Map</li> | |
<li>Water Bottle</li> | |
<li>Jacket</li> | |
</ul> | |
</pre></code> | |
<ul> | |
<li>Rucksack</li> | |
<li>Compass</li> | |
<li>Map</li> | |
<li>Water Bottle</li> | |
<li>Jacket</li> | |
</ul> | |
<h2>Description Lists</h2> | |
<dl> | |
<dt>Author</dt> | |
<dd>Matt West</dd> | |
<dt>Editors</dt> | |
<dd>Sara Shlaer</dd> | |
<dd>Ellie Scott</dd> | |
<dd>Debbye Butler</dd> | |
<dd>Nick Elliott</dd> | |
</dl> | |
<h2>Styling Lists</h2> | |
<h3><code>list-style-type</code></h3> | |
<h4><code>disc</code></h4> | |
<ul id="disc"> | |
<li>Item One</li> | |
<li>Item Two</li> | |
<li>Item Three</li> | |
</ul> | |
<h4><code>circle</code></h4> | |
<ul id="circle"> | |
<li>Item One</li> | |
<li>Item Two</li> | |
<li>Item Three</li> | |
</ul> | |
<h4><code>square</code></h4> | |
<ul id="square"> | |
<li>Item One</li> | |
<li>Item Two</li> | |
<li>Item Three</li> | |
</ul> | |
<h4><code>decimal</code></h4> | |
<ol id="decimal"> | |
<li>Item One</li> | |
<li>Item Two</li> | |
<li>Item Three</li> | |
</ol> | |
<h4><code>decimal-leading-zero</code></h4> | |
<ol id="decimal-leading-zero"> | |
<li>Item One</li> | |
<li>Item Two</li> | |
<li>Item Three</li> | |
</ol> | |
<h4><code>lower-roman</code></h4> | |
<ol id="lower-roman"> | |
<li>Item One</li> | |
<li>Item Two</li> | |
<li>Item Three</li> | |
</ol> | |
<h4><code>upper-roman</code></h4> | |
<ol id="upper-roman"> | |
<li>Item One</li> | |
<li>Item Two</li> | |
<li>Item Three</li> | |
</ol> | |
<h4><code>lower-greek</code></h4> | |
<ol id="lower-greek"> | |
<li>Item One</li> | |
<li>Item Two</li> | |
<li>Item Three</li> | |
</ol> | |
<h4><code>lower-latin</code></h4> | |
<ol id="lower-latin"> | |
<li>Item One</li> | |
<li>Item Two</li> | |
<li>Item Three</li> | |
</ol> | |
<h4><code>upper-latin</code></h4> | |
<ol id="uper-latin"> | |
<li>Item One</li> | |
<li>Item Two</li> | |
<li>Item Three</li> | |
</ol> | |
<h4><code>armenian</code></h4> | |
<ol id="armenian"> | |
<li>Item One</li> | |
<li>Item Two</li> | |
<li>Item Three</li> | |
</ol> | |
<h4><code>georgian</code></h4> | |
<ol id="georgian"> | |
<li>Item One</li> | |
<li>Item Two</li> | |
<li>Item Three</li> | |
</ol> | |
<h4><code>lower-alpha</code></h4> | |
<ol id="lower-alpha"> | |
<li>Item One</li> | |
<li>Item Two</li> | |
<li>Item Three</li> | |
</ol> | |
<h4><code>upper-alpha</code></h4> | |
<ol id="upper-alpha"> | |
<li>Item One</li> | |
<li>Item Two</li> | |
<li>Item Three</li> | |
</ol> | |
<h4><code>none</code></h4> | |
<ol id="none"> | |
<li>Item One</li> | |
<li>Item Two</li> | |
<li>Item Three</li> | |
</ol> | |
<h3><code>list-style-position</code></h3> | |
<h4><code>outside</code></h4> | |
<ol id="outside"> | |
<li>Item One</li> | |
<li>Item Two</li> | |
<li>Item Three</li> | |
</ol> | |
<h4><code>inside</code></h4> | |
<ol id="inside"> | |
<li>Item One</li> | |
<li>Item Two</li> | |
<li>Item Three</li> | |
</ol> | |
<h3><code>list-style-image</code></h3> | |
<ul id="image"> | |
<li>Item One</li> | |
<li>Item Two</li> | |
<li>Item Three</li> | |
</ul> | |
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
*, *:before, *:after { | |
-moz-box-sizing: border-box; | |
-webkit-box-sizing: border-box; | |
box-sizing: border-box; | |
} | |
html { | |
font-family: Helvetica, Arial, sans-serif; | |
font-size: 100%; | |
background: #333; | |
-webkit-font-smoothing: antialiased; | |
} | |
#page-wrapper { | |
width: 640px; | |
background: #FFFFFF; | |
padding: 1em; | |
margin: 1em auto; | |
border-top: 5px solid #69c773; | |
box-shadow: 0 2px 10px rgba(0,0,0,0.8); | |
} | |
h1 { | |
margin-top: 0; | |
} | |
pre { | |
background: #EEE; | |
padding-top: 1em; | |
border-left: 5px solid #69c773; | |
} | |
#disc { | |
list-style-type: disc; | |
} | |
#circle { | |
list-style-type: circle; | |
} | |
#square { | |
list-style-type: square; | |
} | |
#decimal { | |
list-style-type: decimal; | |
} | |
#decimal-leading-zero { | |
list-style-type: decimal-leading-zero; | |
} | |
#lower-roman { | |
list-style-type: lower-roman; | |
} | |
#upper-roman { | |
list-style-type: upper-roman; | |
} | |
#lower-greek { | |
list-style-type: lower-greek; | |
} | |
#lower-latin { | |
list-style-type: lower-latin; | |
} | |
#upper-latin { | |
list-style-type: upper-latin; | |
} | |
#armenian { | |
list-style-type: armenian; | |
} | |
#georgian { | |
list-style-type: georgian; | |
} | |
#lower-alpha { | |
list-style-type: lower-alpha; | |
} | |
#upper-alpha { | |
list-style-type: upper-alpha; | |
} | |
#none { | |
list-style-type: none; | |
} | |
#outside { | |
list-style-position: outside; | |
} | |
#inside { | |
list-style-position: inside; | |
} | |
#image { | |
line-height: 1.5em; | |
list-style-image: url(https://s3-us-west-2.amazonaws.com/s.cdpn.io/4621/treehouse-marker.png); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment