mirror of
https://github.com/servo/servo.git
synced 2025-06-10 17:43:16 +00:00
With inline-block elements set the width to max(min width, specified width) instead of only using the specified width.
25 lines
548 B
HTML
25 lines
548 B
HTML
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<style type="text/css">
|
|
* {
|
|
margin: 0;
|
|
padding: 0;
|
|
}
|
|
div {
|
|
display: inline-block;
|
|
width: 200px;
|
|
height: 100px;
|
|
}
|
|
.red {
|
|
background-color: red;
|
|
}
|
|
.green {
|
|
background-color: green;
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<div class="red"></div><div class="green"></div>
|
|
</body>
|
|
</html>
|