Wie die Frage sagt, kann ich nichts auf den Grund schweben ... Ich versuchte float: absolut und es zeigte, dass. Es sollen 5 verschiedene Boxen sein, aber nur eine davon. Dies ist mein Code:Wie fließe ich divs an den unteren Rand einer Seite?
html,
body {
height: 100%;
}
#one,#two,#three,#four,#five {
margin:0;
padding:0;
float:left;
display:inline-block;
height:50%;
width:20%;
bottom:0;
right:0;
left:0;
position:absolute;
}
div {
margin:-2px;
padding:-2px;
}
#container {
display: inline-block;
width: 100%;
height: 100%;
position: relative;
}
#one {
background-color: blue;
}
#two {
background-color: green;
}
#three {
background-color: yellow;
}
#four {
background-color: orange;
}
#five {
background-color: red;
}
<div id="one">
</div>
<div id="two">
</div>
<div id="three">
</div>
<div id="four">
</div>
<div id="five">
Vielen Dank im Voraus :)
Sie sind aufeinander gestapelt ... –
Vielleicht sollten Sie lesen, was Float tatsächlich tut? https://developer.mozilla.org/en/docs/Web/CSS/float - 'bottom' und' absolute' sind keine akzeptierten Werte. – Quentin