33 lines
450 B
HTML
33 lines
450 B
HTML
<!DOCTYPE html>
|
|
<title>flexbox | min-width: auto</title>
|
|
<link rel="author" href="http://opera.com" title="Opera Software">
|
|
<style>
|
|
body {
|
|
margin: 0;
|
|
width: 602px;
|
|
}
|
|
div {
|
|
background: #3366cc;
|
|
border: 1px solid black;
|
|
}
|
|
div::after {
|
|
content: "";
|
|
clear: both;
|
|
display: block;
|
|
}
|
|
p {
|
|
background: yellow;
|
|
margin: 1em;
|
|
min-width: auto;
|
|
width: auto;
|
|
float: left;
|
|
}
|
|
</style>
|
|
|
|
<div>
|
|
<p>damer</p>
|
|
<p>damer</p>
|
|
<p>damer</p>
|
|
<p>damer</p>
|
|
</div>
|