W srodkowej czesci mam obrazek. Chce aby ten obrazek byl oplywany przez nastepujacy po nim tekst. Natomiast pod tekstem mam kolejny element "podsumowanie" (class="summary"). Podsumowanie ma sie zawsze znajdowac pod obrazkiem. Moge uzyc clear: left ale wtedy trace opływanie wzgledem lewej kolumny. Moge ustalić wysokość dla tekstu poprzedzajacego podsumowanie, ale w przypadku przepełnienia tekst ten zleje się z trescia podsumowania.
Czy jest jakas mozliwosc zrobienia wzglednego clear, albo jakis inny trik, ktory rozwiazalby moj problem?
Kod
/* <![CDATA[ */
#header {
background: yellow;
}
.wrapper {
clear: both;
}
.wrapper:after {
display: block;
height: 0;
clear: both;
visibility: hidden;
}
#columnLeft {
float: left;
width: 200px;
background: blue;
}
#columnMiddle {
display: block;
margin-left: 200px;
margin-right: 200px;
}
#columnRight {
float: right;
width: 200px;
background: blue;
}
#columnLeftBottom {
float: left;
width: 50%;
}
#columnRightBottom {
width: 49%;
margin-left: 50%;
}
#footer {
clear: both;
background: yellow;
}
.content {
padding: 1em;
position: relative;
z-index: 3;
}
.content img {
float: left;
height: 150px;
width: 150px;
margin-right: 20px;
margin-bottom: 20px;
background: red;
}
.content .summary {
clear: left;
background: green;
}
/* ]]> */
#header {
background: yellow;
}
.wrapper {
clear: both;
}
.wrapper:after {
display: block;
height: 0;
clear: both;
visibility: hidden;
}
#columnLeft {
float: left;
width: 200px;
background: blue;
}
#columnMiddle {
display: block;
margin-left: 200px;
margin-right: 200px;
}
#columnRight {
float: right;
width: 200px;
background: blue;
}
#columnLeftBottom {
float: left;
width: 50%;
}
#columnRightBottom {
width: 49%;
margin-left: 50%;
}
#footer {
clear: both;
background: yellow;
}
.content {
padding: 1em;
position: relative;
z-index: 3;
}
.content img {
float: left;
height: 150px;
width: 150px;
margin-right: 20px;
margin-bottom: 20px;
background: red;
}
.content .summary {
clear: left;
background: green;
}
/* ]]> */
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="pl" > <head> <meta name="author" content="" /> <meta http-equiv="Content-Type" content="application/xhtml+xml; charset=utf-8" /> <link rel="stylesheet" href="style.css" type="text/css" /> </head> <body> <div id="page"> <div id="header"> <div class="content"> </div> </div> <div id="wrapperTop" class="wrapper"> <div id="columnLeft"> <div class="content"> <p>Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.</p> </div> </div> <div id="columnRight"> <div class="content"> <p>Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.</p> </div> </div> <div id="columnMiddle"> <div class="content"> <img src="picture.gif" /> </div> </div> </div> <div id="footer"> <div class="content"> </div> </div> </div> </body> </html>