Skip to content

Instantly share code, notes, and snippets.

Created February 27, 2012 20:01
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 anonymous/1926652 to your computer and use it in GitHub Desktop.
Save anonymous/1926652 to your computer and use it in GitHub Desktop.
IE 7 scroll bar issue using PIE.htc behavior
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML Strict//EN">
<html>
<head>
<style>
.box {
padding: 10px;
width: 600px;
behavior: url(PIE.htc);
border: 1px solid black;
border-radius: 10px;
background-color: white;
}
.scroller {
overflow: auto;
*overflow-x: auto;
*overflow-y: hidden;
*padding-bottom: 17px;
}
.box input {
width: 320px;
}
.combo {
white-space: nowrap;
}
</style>
</head>
<body>
<div class="box">
<div class="scroller">
<table>
<tr>
<td>
<div>
<span class="combo"><span><span><span><input /><span>&nbsp;</span></span></span></span></span>
</div>
</td>
<td>
<div>
<span class="combo"><span><span><span><input /><span>&nbsp;</span></span></span></span></span>
</div>
</td>
</tr>
</table>
</div>
</div>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment