position: relative
inside a statically positioned overflowed element is position: fixed
in IEContent
Content
Content
Content
Content
Content
Content
Content
Content
Content
Content
Content
Content
Content
Content
Content
Content
Content
div {
border: 1px solid #000;
height: 300px;
overflow: auto;
position: relative;
_position: static;
background: #f00;
}
h2 {
position: fixed;
_position: relative;
}
Or with a conditional comment.