JSFiddle - React, Tailwind, and code Playground
by morrison
HTML
<html>
<head>
<style type="text/css" media="all">
@import url(http://fonts.googleapis.com/css?family=Droid+Sans);
@import url(style.css);
</style>
<!--[if lt IE 9]>
<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
<title>Title</title>
</head>
<body>
<div class="topbar">
<div class="user_name">Etunimi Sukunimi</div>
<div class="logout"><a href="logout">Kirjaudu ulos</a></div>
</div>
<div class="leftbar">
<div class="section">
<a href="#">Link A.1</a>
<a href="#">Link A.2</a>
</div>
<div class="section">
<a href="#">Link B.1</a>
<a href="#">Link B.2</a>
</div>
</div>
<div class="content">
<p>Some content</p>
</div>
</body>
</html>
CSS
body {
margin:0;
font-family: 'Droid Sans', sans-serif;
}
/* Yläpalkki */
.topbar {
background: #ffd65e; /* Old browsers */
background: -moz-linear-gradient(top, #ffd65e 0%, #febf04 100%); /* FF3.6+ */
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#ffd65e), color-stop(100%,#febf04)); /* Chrome,Safari4+ */
background: -webkit-linear-gradient(top, #ffd65e 0%,#febf04 100%); /* Chrome10+,Safari5.1+ */
background: -o-linear-gradient(top, #ffd65e 0%,#febf04 100%); /* Opera 11.10+ */
background: -ms-linear-gradient(top, #ffd65e 0%,#febf04 100%); /* IE10+ */
background: linear-gradient(top, #ffd65e 0%,#febf04 100%); /* W3C */
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#ffd65e', endColorstr='#febf04',GradientType=0 ); /* IE6-9 */
padding:15px;
padding-bottom:0px;margin-bottom:0px;
height:60px;
}
.topbar .user_name {
font-size:17px;
font-weight:bold;
}
.topbar .logout {
position:absolute;
right:130px;
top:20px;
}
.topbar .logout a {
padding:5px 20px;
text-decoration:none;
color:black;
color: #d9eef7;
border: solid 1px #0076a3;
background: #0095cd;
background: -webkit-gradient(linear, left top, left bottom, from(#00adee), to(#0078a5));
background: -moz-linear-gradient(top, #00adee, #0078a5);
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#00adee', endColorstr='#0078a5');
}
.topbar .logout a:hover {
background: #007ead;
background: -webkit-gradient(linear, left top, left bottom, from(#0095cc), to(#00678e));
background: -moz-linear-gradient(top, #0095cc, #00678e);
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#0095cc', endColorstr='#00678e');
}
/* Vasen palkki */
.leftbar {
height:100%;
margin-top:0px;
padding-top:0px;
position : absolute; top : 75px; left : 0px; padding-bottom : 20px; margin : 0px;
width:10%;
background-image:...