JSFiddle - React, Tailwind, and code Playground
by pertrai1
HTML
<header>
<nav>
<ul>
<li>+You</li>
<li>Gmail</li>
<li>Images</li>
<li><img src="images/grid.png" alt="Grid"></li>
<li><input type="button" value="Sign In" id="signIn"></li>
</ul>
</nav>
</header>
<div id="logo">
<img src="images/google-logo.png" alt="logo">
</div>
<div id="searchForm">
<form action="#" method="post">
<input type="text" name="searchBox" id="searchBox">
<fieldset>
<input type="submit" value="Google Search">
<input type="submit" value="I'm Feeling Lucky">
</fieldset>
</form>
</div>
<footer>
<div id="companyInfo">
<ul>
<li>Advertising</li>
<li>Business</li>
<li>About</li>
</ul>
</div>
<div id="userInfo">
<ul>
<li>Privacy & Terms</li>
<li>Settings</li>
</ul>
</div>
</footer>
CSS
/* http://meyerweb.com/eric/tools/css/reset/
v2.0 | 20110126
License: none (public domain)
*/
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup,
menu, nav, output, ruby, section, summary,
time, mark, audio, video, input {
margin: 0;
padding: 0;
border: 0;
font-size: 100%;
font: inherit;
vertical-align: baseline;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
display: block;
}
body {
line-height: 1;
}
ol, ul {
list-style: none;
}
blockquote, q {
quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
content: '';
content: none;
}
table {
border-collapse: collapse;
border-spacing: 0;
}
/* my styles */
body {
font-family: Arial;
font-size: 80%;
}
header {
margin-top: 15px;
}
li {
display: inline-block;
}
nav {
float: right;
margin-bottom: 148px;
}
nav ul {
padding-right: 15px;
}
nav li {
margin-right: 15px;
vertical-align: middle;
}
#signIn {
width: 70px;
height: 30px;
font-weight: bold;
color: white;
background-color: #4285f4;
border: none;
border-radius: 2px;
}
#logo {
clear: right;
}
#logo, #searchForm {
text-align: center;
}
#searchForm {
margin-top: 24px;
}
#searchBox {
background: url('images/microphone.png') no-repeat 99% 50%;
width: 550px;
height: 8px;
border: 1px solid #d8d8d8;
padding: 10px;
margin-bottom: 16px;
}
#searchForm fieldset input {
font-weight: bold;
font-size: 11px;
border: 1px solid #dddddd;
padding: 8px;
background: #f5f5f5; /* Old browsers */
background: -moz-linear-gradient(top, #f5f5f5 0%,...