JSFiddle - React, Tailwind, and code Playground
by brandonesc
HTML
<h1>Not sure if this is correct?<h1>
<p>But this is similiar to what I've been using</p>
<ul>
<li><a href="#">L1</a></li>
<li><a href="#">L2</a></li>
<li><a href="#">L3</a></li>
<li><a href="#">L4</a></li>
</ul>
<p class="thought">I'd like to know though which is better practice, this or @Matt Harris's <a href="http://jsfiddle.net/mattyharris/EBgQ4/">This Fiddle</a>. I actually like Matt's a little better, it's seems like less code and correct.<br /><br />This is like I said what I've been doing, and not 100% if it's correct.</p>
CSS
body { background: #f1f1f1; font-family: Helvetica, sans-serif; margin: 20px; }
p, h1 { font-weight: bold; text-align: center; }
h1 { font-size: 20px; }
p { font-size: 16px; margin-bottom: 30px; }
p.thought { font-size: 14px; font-weight: normal; line-height: 30px; margin-top: 60px; }
a { background-color: green; color: #fff; padding: 5px; }
ul li { display: inline; font-size: 14px; }
ul li a {
background: orange;
color: red;
display: inline-block;
margin: 0 5px;
padding: 10px;
text-decoration: none;
}
ul li a:hover { color: blue; }