Czemu position w 4 zagnieżdżonych divach odwołują sie do body a nie diva o klasie div_product ?
Chciałbym by 1 div był po lewej a 3 po prawej i najlepiej rozłożone równomiernie w pionie lub górny na górze a dolny na dole.
Lub może ktoś może doradzić jak to lepiej zrobić ? (wiem można w tabelce)
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<meta http-equiv="content-type" content="text/html; charset=iso-8859-1">
.div_product{
border: 1px solid red;
width: 320px;
height: 78px;
}
.div_product_img
{
width: 120px;
height: 78px;
background-color: #cfcdb9;
position: absolute;
top: 0px;
left: 0px;
}
.div_product_name
{
position: absolute;
top: 0px;
left: 130px;
color: #bc5739;
font-size: 18px;
font-weight: bold;
}
.div_product_desc
{
position: absolute;
top: 20px;
left: 130px;
color: #6e6b4c;
font-size: 10px;
font-weight: bold;
}
.div_product_more
{
position: absolute;
bottom: 0px;
left: 130px;
color: #fff;
font-weight: bold;
width: 70px;
height: 14px;
text-align: center;
}
<div class="div_product"> <div class="div_product_img"></div> <div class="div_product_name">Lorem ipsum
</div> <div class="div_product_desc">Ad viderer maiorum omittam per. Eam veritus legendos cu, mea et tation minimum.
</div> <div class="div_product_more">lorem
</div>