Hallo,
neues Problem. Habe in einem Container noch einmal 4 Subcontainer reingepackt. Nachdem ich die Ecken abgerundet habe, ist nur noch Platz für drei (nebeneinander), der vierte wurde nach unten verschoben.
Habe eine feste Breite des Hauptcontainer und hatte vorher eine 25%-Verteilung. Klappte alles ganz gut, bis ich auf die Idee mit den Ecken kam.
Hat vielleicht jemand eine Lösung? Danke Euch.
herzlich, Sven.
HTML-Code:
<div id="content">
<div id="content_1">
<h1>Angebot 1 </h1>
<p></p>
<p>Produkt: </p>
<p>Preis: </p>
<p>Funktionsübersicht:</p>
<p>Demo</p>
<p> </p>
<p>Ich möchte dieses Angebot nutzen </p>
<p> </p>
</div>
<div id="content_2">
<h1>Angebot 2</h1>
<p></p>
<p>Produkt:</p>
<p>Preis:</p>
<p>Funktionsübersicht:</p>
<p>Demo:</p>
<p> </p>
<p>Ich möchte dieses Angebot nutzen </p>
</div>
<div id="content_3">
<h1>Angebot 3</h1>
<p></p>
<p>Produkt:</p>
<p>Preis:</p>
<p>Funktionsübersicht:</p>
<p>Demo</p>
<p> </p>
<p>Ich möchte dieses Angebot nutzen </p>
</div>
<div id="content_4">
<h1>Angebot 4 </h1>
<p></p>
<p>Produkt:</p>
<p>Preis:</p>
<p>Funktionsübersicht:</p>
<p>Demo</p>
<p> </p>
<p>Ich möchte dieses Angebot nutzen </p>
<p> </p>
</div>
</div>
Code:
#content {
margin: 0 auto;
width: 900px;
height: 500px;
}
#content_1 {
background: #990066;
height: 500px;
float: left;
overflow: auto;
border:1px solid #aaa;
-moz-border-radius: 10px;
-khtml-border-radius :10px;
padding: 0px;
}
#content_2 {
background: #996699;
height: 500px;
float: left;
overflow: auto;
border:1px solid #aaa;
-moz-border-radius: 10px;
-khtml-border-radius :10px;
padding: 0px;
}
#content_3 {
background: #CC6633;
height: 500px;
float: left;
overflow: auto;
border:1px solid #aaa;
-moz-border-radius: 10px;
-khtml-border-radius :10px;
padding: 0px;
}
#content_4 {
background: #FF9933;
height: 500px;
float: left;
overflow: auto;
border:1px solid #aaa;
-moz-border-radius: 10px;
-khtml-border-radius: 10px;
padding: 0px;
}