Salut.
Stie cineva cum pot face ca un <div> repeat region sa isi ia un fel de justify sau wrap exact ca la text, in functie de resize-ul browser-ului ?
Vreau sa fac div-urile astea sa se comporte ca aici. (dati un resize la browser sa vedeti despre ce vorbesc)
.php-ul :
Cod:
<div id="main">
<?php do { ?>
<div id="prod_repeat">
<div id="main_image"><a href="catmagazines.php?category=<?php echo $row_top_25['PRODUCT_NAME']; ?>"><img src='<?php echo $row_top_25['IMAGE_URL']; ?>' alt="<?php echo $row_top_25['DESCRIPTION']; ?>" title="<?php echo $row_top_25['PRODUCT_NAME']; ?>"></a>
</div>
<div id="titlu_produs"><a href="catmagazines.php?category=<?php echo $row_top_25['PRODUCT_NAME']; ?>"><?php echo $row_top_25['PRODUCT_NAME']; ?></a></div>
</div>
<?php } while ($row_top_25 = mysql_fetch_assoc($top_25)); ?>
</div>
si .css-ul :
Cod:
#main {
position: absolute;
left: 208px;
top: 201px;
right: 10px;
bottom: 20px;
height: 100%;
align: center;
}
#main_image {
margin: 15px;
text-align: center;
}
#titlu_produs {
margin: 10px;
text-align: center;
}
#prod_repeat {
display: inline;
float: left;
width: 150px;
height: 200px;
border-right-color: #CCCCCC;
border-right-width: 1px;
border-right-style: dashed;
border-left-color: #CCCCCC;
border-left-width: 1px;
border-left-style: dashed;
margin-top: 10px;
margin-bottom: 10px;
margin-right: 2px;
margin-left: 2px;
}
M-am jucat cu marginile stanga si dreapta in #prod_repeat dar nici un rezultat.
Stie cineva cum se face ?
Multam anticipat.