Ich möchte div Block in solchen maner allign:allign Spalte von DIV-Blöcke von der Seite eines anderen DIV-Block
+-----+------+ |first|second| | | | + +------+ | |third | | | | +-----+------+
Aber der folgende Code allign es auf andere Weise:
<html>
<head>
<style>
.common
{
border: 1px solid black;
float: left;
}
#first
{
background: red;
height: 100px;
width: 50px;
}
#second
{
background: green;
height: 50px;
width: 50px;
}
#third
{
background: yellow;
height: 50px;
width: 50px;
}
</style>
</head>
<body>
<div class="common" id="first">first</div>
<div class="common" id="second">second</div>
<div class="common" id="third">third</div>
</body>
</html>
Ich werde keine absolute Positionierung verwenden.
Gibt es einen anderen Weg, es zu tun?
Vielen Dank für die Zukunft.