public
Created

Overflow example for a SO question

  • Download Gist
overflow.html
Liquid
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28
<!DOCTYPE HTML>
<html>
<head>
<title>Overflow!</title>
<style type="text/css">
#outer {
height: 200px;
position: relative;
overflow: hidden;
background-color: red;
}
 
#inner {
height: 10px;
width: 10px;
position: absolute;
top: 0;
left: -5px;
background-color: blue;
}
</style>
</head>
<body>
<div id="outer">
<div id="inner"></div>
</div>
</body>
</html>

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.