JSFiddle - React, Tailwind, and code Playground
HTML
<div class="container elem">
<span class="label"><div class="container"></span>
<nav class="elem elem-red">
<span class="label"><nav></span>
<ul>
<li>
<a href="flexbox.html">Home</a>
</li>
<li>
<a href="flexbox.html">Taco Menu</a>
</li>
<li>
<a href="flexbox.html">Draft List</a>
</li>
<li>
<a href="flexbox.html">Hours</a>
</li>
<li>
<a href="flexbox.html">Directions</a>
</li>
<li> fef
<a href="flexbox.html">Contact</a>
</li>
</ul>
<span class="endlabel"></nav></span>
</nav>
<div class="elem elem-red flex-column">
<span class="label"><div class="flex-column"></span>
<section class="elem elem-green">
<span class="label"><section></span>
<p>
Flexbox好容易使用!
</p>
<span class="endlabel"></section></span>
</section>
<section class="elem elem-green ipsum">
<span class="label"><section></span>
<p>
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Phasellus imperdiet, nulla et dictum interdum, nisi lorem egestas odio, vitae scelerisque enim ligula venenatis dolor. Maecenas nisl est, ultrices nec congue eget, auctor vitae massa. Fusce luctus
vestibulum augue ut aliquet. Mauris ante ligula, facilisis sed ornare eu, lobortis in odio. Praesent convallis urna a lacus interdum ut hendrerit risus congue. Nunc sagittis dictum nisi, sed ullamcorper ipsum dignissim ac. In at libero sed nunc
venenatis imperdiet sed ornare turpis. Donec vitae dui eget tellus gravida venenatis. Integer fringilla congue eros non fermentum. Sed dapibus pulvinar nibh tempor porta. Cras ac leo purus. Mauris quis diam velit.
</p>
<span class="endlabel"></section></span>
</section>
<span class="endlabel"></div></span>
</div>
</div>
CSS
body {
margin: 0;
padding: 0 0 1em 0;
font-size: 1em;
line-height: 1.5em;
color: #414142;
font-family: Arial;
background-color: #ededed;
}
body.rtl {
direction: rtl;
}
body.rtl code {
display: inline-block;
direction: ltr;
}
body.rtl pre code {
display: block;
}
* {
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
}
img {
max-width: 100%;
}
p {
margin: 1em 0;
}
p code,
li code {
background-color: #ECECEC;
}
h1,
h2 {
font-family: 'Bree Serif', serif;
font-weight: normal;
}
h1 {
margin: 1.5em 0;
font-weight: normal;
text-align: center;
}
h2 {
font-family: 'Bree Serif', serif;
margin: 1.2em 0;
font-weight: normal;
}
a:link {
color: #D64078;
text-decoration: none;
}
a:visited {
color: #D64078;
}
a:hover {
text-decoration: underline;
}
a:active {
background-color: black;
color: white;
}
#menu {
background-color: whiteSmoke;
text-align: center;
}
#menu a {
color: #8F8F8F;
display: inline-block;
padding: .5em 1em;
text-shadow: 0 1px 0 #EDEDED;
text-decoration: none;
}
#menu a:hover {
background: rgb(220, 220, 220);
}
#menu .home-link {
margin-right: 1em;
}
#logo {
text-align: center;
background-color: #ededed;
padding: 1em 0;
}
#logo a {
text-decoration: none;
color: #414142;
position: relative;
}
#logo a:active {
background: none;
}
#logo img {
vertical-align: middle;
}
#logo span {
vertical-align: middle;
font-size: 2em;
font-family: 'Bree Serif', serif;
margin-left: .2em;
}
#translations {
text-align: center;
max-width: 400px;
margin: 0 auto 1em;
}
#translations span {
margin: 0 .2em;
white-space: nowrap;
}
#translator {
text-align: center;
}
#container {
padding: 1em;
margin: 0 0 1em 0;
background-color: white;
}
.content {
max-width:...