mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 09:58:11 +00:00

This fixes the issue where max margin is used to find offset of floating box although horizonal margins do not collapse so they need to be summed instead.
20 lines
No EOL
365 B
HTML
20 lines
No EOL
365 B
HTML
<style>
|
|
body {
|
|
width: 200px;
|
|
margin-left: 100px;
|
|
}
|
|
|
|
.row {
|
|
height: 200px;
|
|
margin-left: -50px;
|
|
background-color: blueviolet;
|
|
}
|
|
.item {
|
|
float: left;
|
|
width: 50%;
|
|
}
|
|
</style><div class="row"><div class="item" style="background-color: lightblue">
|
|
a</div>
|
|
<div class="item" style="background-color: lightgoldenrodyellow">
|
|
b</div>
|
|
</div> |