JSFiddle - React, Tailwind, and code Playground

by Baliga

HTML

<!DOCTYPE html> 
<html lang="en" xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Home</title>
<link rel="stylesheet" href="home.css"/>
<link rel="stylesheet" href="headerAndfooter.css"/>
</head>
<body>
    <header>
        <nav>
            <ul>
                <li  id="header"><a href="">Home</a></li>
                <li  id="header"><a href="">Products</a></li>
                <li><a href="">Cart</a></li>
                <li><a href="">Login</a></li>
                <li><a href="">FAQ</a></li>
            </ul>
        </nav>
    </header>
    <img src="home.jpg" alt="none"></img>
    <button type="button">Shop Now</button>
    <p>GearTime</p>
    <div id="container">
    <footer>
        <nav>
            <ul>
                <li><a href="">About Us</a></li>
                <li><a href="">Contact</a></li>
                <li><a href="">Terms and Conditions</a></li>
                <li><a>&copy; 2018, geartime.com</a></li>
            </ul>
        </nav
    </footer>
    </div>
</body>
</html>

CSS

html,body
{
  height: 100%;
  margin: 0;
  padding: 0;
}

img
{
    display:block;
    width:100%;
    height:100%;
    object-fit: cover;
}

p
{
    position: absolute;
    transform: translate(-50%, -50%);
    -ms-transform: translate(-50%, -50%);
    top: 45%;
    left: 50%;
    color: white;
    font-size: 100px;
    font-family: helvetica;
    text-align: center;
    display: inline-block;
    background-color: black;
    padding: 10px 10px;
    border-radius: 10%;
}

button
{
    top: 70%;
    left: 50%;
    position: absolute;
    transform: translate(-50%, -50%);
    -ms-transform: translate(-50%, -50%);
    background-color: orange;
    border: none;
    color: white;
    padding: 10px 15px;
    text-align: center;
    text-decoration: bold;
    display: inline-block;
    font-size: 40px;
    border-radius: 5px;
    margin-top: 20px;
    
}






header
{
    width: 100%;
    height: 100px;
    top: 0px;
    background-color: black;

}

#container
{
    position: relative;
    min-height: 100%;
    padding-bottom: 100px;
    box-sizing: border-box;
    -webkit-box-sizing: border-box;
}

footer
{
    width: 100%;
    height: 100px;
    bottom: 0;
    background-color: black;
    position: absolute;
}

nav
{
    display:flex;
    justify-content:center;
}

#header
{
    margin-right:auto;
}

nav ul
{
    margin: 0px;
    margin:0 auto;
    width:80%;
    display:flex;
    justify-content:space-between;
}

nav ul li
{
    margin-right: 10px;
    margin-top: 15px;
    list-style: none;
    text-decoration: none;
    display: inline;
    padding: 20px;
}

nav ul li a
{
    text-decoration: none;
    color:white;
    font-size:25px;
    font-family:monospace;
}

nav ul li a:hover
{
    Background-color:skyblue;
}

nav li a:hover
{
    Background-color:skyblue;
}