Das Große Problem momentan ist halt das dass zweite div sich nicht so weit ausbreiten lässt bis das div container voll ist.
Ich kann dem div 2 nicht sagen wie viel px oder em bis das es am Rand ist
Code:
<style type="text/css">
/* Basic Elements */
html, body {
margin: 0;
}
.container {
margin: 0 auto;
width: 85%;
border: 1px solid #000000;
}
</style>
</head>
<body>
<div class="container">
<div style="float:left;width:50px;background-color:#ff0000;">1</div><!-- 1 -->
<div style="float:left;width:auto;background-color:#00ff00;">2</div><!-- F -->
<div style="float:left;width:100px;background-color:#0000ff;">3</div><!-- L -->
<div style="float:left;width:50px;background-color:#FF00ff;">4</div><!-- T -->
<div style="float:left;width:50px;background-color:#00FFff;">5</div><!-- B -->
<div style="float:left;width:100px;background-color:#ffFF00;">6</div><!-- M -->
</div>
<br />
<div class="container">
aDSF
</div>
Lesezeichen