JSFiddle - React, Tailwind, and code Playground
HTML
<!doctype html>
<html>
<head>
<title>My Website</title>
<meta charset="utf-8" />
<link href="css/style.css" type="text/css" rel="stylesheet"/>
</head>
<body>
<div class="container">
<div class="navigation">
<ul id="nav">
<li><a href="#">Home</a></li>
<li><a href="#">News</a>
<ul>
<li><a href="#">News 1</a></li>
<li><a href="#">News 2</a></li>
</ul>
</li>
<li><a href="#">Archives</a>
<ul>
<li><a href="#">Archive 1</a></li>
<li><a href="#">Archive 2</a></li>
<li><a href="#">Archive 3</a></li>
<li><a href="#">Archive 4</a></li>
<li><a href="#">Archive 5</a></li>
<li><a href="#">Archive 6</a></li>
</ul>
</li>
<li><a href="#">Links</a>
<ul>
<li><a href="#">Links 1</a></li>
<li><a href="#">Links 2</a></li>
<li><a href="#">Links 3</a></li>
</ul>
</li>
<li><a href="#">About</a></li>
</ul>
</div>
<div class="main-wrap">
<div class="main1">
<h1 id="top"> Hello World!!! </h1>
<p> First paragraph </p>
<h2> Things I Must Do Today</h2>
<ul>
<li> <a href="http://google.be" target="_blank" id="externallink"> Go to the mall </a> </li>
<li> Shop </li>
<li> Get gas</li>
<li> Drive home </li>
</ul>
<p><img src="img/koala.jpeg" alt="a koala sitting in a tree" align="left"/>
Text a lot of text! Text a lot of text!Text a lot of text!Text a lot of text!Text a lot of text!Text a lot of text!
Text a lot of text!Text a lot of text!Text a lot of text!Text a lot of text!Text a lot of text!Text a lot of text!
Text a lot of text!Text a lot of text!Text a lot of text!Text a lot of text!Text a lot of text!Text a lot of text!
Text a lot of text! Text a lot of text!Text a lot of text!Text a lot of text!Text a lot of text!Text a lot of text!
Text a lot of text!Text a lot of text!Text a lot of text!Text a lot of text!Text a lot of text!Text a lot of text!
Text a lot of text!Text a lot of text!Text a lot of text!Text a lot of text!Text a lot...
CSS
* {
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
}
body {
width: 960px;
margin: 0 auto;
background: #099;
font-family: Arial, Verdana, sans-serif;
}
/* website layout */
.container {
}
.navigation {
margin: 20px 0px;
padding: 5px 0px;
background-color: #efefef;
height: 70px;
}
.main-wrap {
display: table;
width: 1000px; /* Container width + 2 x 20px */
border-spacing: 20px 0;
margin-left: -20px; /* to adjust centering because of increased width (needed for border spacing) */
margin-bottom: 20px;
}
.main1 {
display: table-cell;
width: 652px;
padding: 10px;
background-color: #efefef;
}
.main2 {
display: table-cell;
width: 288px;
padding: 10px;
background-color: #efefef;
}
footer {
padding: 10px;
background-color: #efefef;
text-align: center;
}
/* dropdown menu css */
#nav {
list-style:none;
font-weight:bold;
margin-bottom: 10px;
width:100%;
}
#nav li {
display: inline-block;
margin-right:5px;
position:relative;
}
#nav li ul{
margin: 0;
padding-left: 0;
}
#nav a{
display:block;
padding:5px;
color:#efefef;
background:#000000;
text-decoration:none;
}
#nav a:hover{
color:#fff;
background:#000000;
text-decoration:underline;
}
#nav ul{
background:#fff;
background:rgba(255,255,255,0);
list-style:none;
position:absolute;
left:-9999px;
}
#nav ul li{
padding-top:2px;
float:none;
}
#nav ul a{
white-space:nowrap;
}
#nav li:hover ul{
left:0;
}
#nav li:hover a{
background:#000000;
text-decoration:underline;
}
#nav li:hover ul a{
text-decoration:none;
}
#nav li:hover ul li a:hover{
background:#222;
}
/* links make-up */
a:link {
color: black;
text-decoration: none;
}
a:visited {
color:black;
}
a:hover {
color: #229944;
text-decoration: underline;
}
a:active {
color:red;
}
#externallink {
text-decoration: underline;
}
/* other */
img...