mirror of
https://github.com/RGBCube/serenity
synced 2025-05-30 23:08:11 +00:00

The "y" check for when to reset float side positioning was comparing an offset that included the border, while the offset of the other side does not.
29 lines
453 B
HTML
29 lines
453 B
HTML
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<style>
|
|
body {
|
|
width: 780px;
|
|
text-align: center
|
|
}
|
|
.right {
|
|
border: 1px solid red;
|
|
width: 50px;
|
|
height: 50px;
|
|
float: right;
|
|
}
|
|
.left {
|
|
border: 1px solid green;
|
|
width: 50px;
|
|
height: 50px;
|
|
float: left;
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<div class="left" >Left1</div>
|
|
<div class="right">Right1</div>
|
|
<div class="left" >Left2</div>
|
|
<div class="right">Right2</div>
|
|
</body>
|
|
</html>
|