Excessive clamping can cause incorrect behaviour in the presence of negative margins. MozReview-Commit-ID: AkQEqcQpAxx
19 lines
292 B
HTML
19 lines
292 B
HTML
<!DOCTYPE html>
|
|
<html>
|
|
<style>
|
|
#header {
|
|
position: fixed;
|
|
top: 0;
|
|
}
|
|
#header > div {
|
|
border: solid blue 2px;
|
|
height: 100px;
|
|
width: 100px;
|
|
}
|
|
</style>
|
|
<div id="section">
|
|
<div id="header">
|
|
<div></div>
|
|
</div>
|
|
</div>
|
|
</html> |