Code:
* { margin: 0; padding: 0; }
body, html {
background-color: #333;
height: 100%;
}
body {
font: 13px/1.26 Arial, Helvetica, sans-serif;
}
a { }
a:hover { text-decoration: underline; }
.boxes {
border: 3px solid;
padding: 25px 0;
border-radius: 18px;
-webkit-border-radius: 18px;
-moz-border-radius: 18px;
background-color: #1A1A1A;
background-image: -webkit-linear-gradient(top, #222 40%, #111);
background-image: -moz-linear-gradient(top, #222 40%, #111);
background-image: -o-linear-gradient(top, #222 40%, #111);
background-image: -ms-linear-gradient(top, #222 40%, #111);
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#222', endColorstr='#111');
}
/* controls all border colors of "boxes" - to override use !important; */
.boxes,
.boxes * {
border-color: #111 !important;
}
.boxes .box {
position: relative;
border-top: 3px solid;
min-height: 200px;
background: #555;
}
.boxes .box .legend {
border: 3px solid;
background: #DDD;
line-height: 30px;
position: absolute;
top: -18px;
left: 20px;
padding: 0 10px;
font-weight: bold;
width: auto;
border-radius: 8px;
-webkit-border-radius: 8px;
-moz-border-radius: 8px;
}
.boxes .joined {
width: 100%;
}
.boxes .joined .box {
float: left;
box-sizing: border-box;
-ms-box-sizing: border-box;
-moz-box-sizing: border-box;
-o-box-sizing: border-box;
overflow: visible !important;
width: 100%;
}
.boxes .joined .large {
width: 550px;
}
.boxes .joined .small {
width: 364px;
border-left: 3px solid;
}
.boxes .box:not(.joined):last-child {
border-bottom: 2px solid;
}
.clear {
clear: both;
}
#guide #content {
border: #222 1px solid;
background-color: #666;
}
/* -----[header]----- */
#header-container { min-width: 900px; }
#header { height: 40px; position: relative; }
/* -----[content]----- */
#content-container { min-width: 900px; }
#content {
width: 920px;
position: relative;
margin: 0 auto;
padding: 30px;
}
Code:
<!DOCTYPE html>
<html>
<head>
<title>League Town</title>
<link rel="stylesheet" type="text/css" media="screen" href="style.css"/>
</head>
<body id="guide">
<div id="wrap">
<div id="header-container">
<div id="header"></div>
</div>
<div id="content-container">
<div id="content">
<div id="town-1" class="boxes">
<div class="l-n joined">
<div class="location box large">
<div class="legend">Location</div>
</div>
<div class="navigation box small">
<div class="legend">Navigation</div>
</div>
<!-- clear needed if using "joined" (2 boxes) -->
<div class="clear"></div>
</div>
<div class="monsters box">
<div class="legend">Monsters</div>
</div>
</div>
</div>
</div>
</div>
</body>
</html>