Skip to content

Instantly share code, notes, and snippets.

@bloudermilk
Created November 27, 2011 10:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bloudermilk/1397390 to your computer and use it in GitHub Desktop.
Save bloudermilk/1397390 to your computer and use it in GitHub Desktop.
Overflow example for a SO question
<!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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment