JSFiddle - React, Tailwind, and code Playground
by tea4two
HTML
<div id="header" class="cf">
<div id="logo">ゲスト様</div>
<div id="container">
<ul id="utility">
<li><a href="">メニュー1</a></li><!--
--><li><a href="">メニュー2</a></li><!--
--><li><a href="">メニュー3</a></li><!--
--><li><a href="">メニュー4</a></li>
</ul>
<form id="searchArea" action="**.php" method="get">
<input type="search" name="search" id="search"><button id="searchBtn">検索</button>
</form>
</div>
</div>
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 {
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;
}
/* クリアフィックス */
.cf:after {
content:'';
display: table;
clear: both;
}
body {
padding-top: 50px;
}
/* 自分スタイル
----------------------------------- */
#header {
background-color: #f0f0f0;
height: 40px;
}
#logo, #utility,#searchArea {
line-height: 40px;
}
#logo {
float: left;
width: 100px;
}
#container {
float: right;
}
#utility {
float: left;
}
#utility li {
display: inline;
}
#utility li a {
text-decoration: none;
padding-left: 10px;
margin-right: 10px;
color: #000;
}
#utility li a:hover {
color: yellow;
}
#searchArea {
float: right;
}
#search {
display:inline-block;
background: #fff;
margin: 0;
padding: 0;
border: 1px solid #ccc;
height: 23px;
line-height: 40px;
vertical-align: middle;
}
#searchBtn {
display: inline-block;
margin: 0;
border: none;
background: green;
...