Skip to content

Instantly share code, notes, and snippets.

@kalinchernev
Created December 13, 2013 12:37
Show Gist options
  • Save kalinchernev/7943631 to your computer and use it in GitHub Desktop.
Save kalinchernev/7943631 to your computer and use it in GitHub Desktop.
Fluid box with inner box on the bottom in the middle
<!DOCTYPE html>
<html>
<head>
<title>Fluid box with inner box on the bottom in the middle</title>
<style type="text/css">
.outer {
background: #ccc;
border: 1px solid red;
position: relative;
height: 250px;
width: 100%;
}
.inner {
border: 1px solid blue;
background: #c1c1c1;
position: absolute;
height: 50%;
width: 90%;
bottom: 10px;
left: 5%;
}
</style>
</head>
<body>
<div class="outer">
<div class="inner">
</div>
</div>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment