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