si è vero ha perfettamente ragione non chavevo pensato.
Volevo porti e porvi un'altro quesito, scusate ma è da poco creo i layout delle pagine con i div e css prima usavo le tabelle haimè.
comunque ho questo:
codice:
div#lastinsights { position:relative; width:300px; float:left; }
div#titleinsights { line-height:30px; padding-left:20px; background:url(../images/page/background/bgTitle.jpg) repeat-x top left; border-radius:5px 5px 0px 0px; -moz-border-radius:5px 5px 0px 0px; text-shadow:#666 2px 2px 2px; }
div#contentinsights { width:300px; background:url(../images/page/background/bgSett.jpg) repeat-x top left; }
div#insights { margin-left:10px; margin-right:10px; padding:5px; border-bottom:#999 solid 1px; }
e questo in html:
codice:
<div id="lastinsights">
<div id="titleinsights">»Ultimi approfondimenti</div>
<div id="contentinsights">
<?php $QueryUI=mysql_db_query($db1,"Select IDArticle,Oggetto_IT from insights Order by DataInsersione Desc Limit 5") or die (mysql_error()." errore estrazione ulti approfondimenti");
while($RecIns=mysql_fetch_array($QueryUI)){ ?>
<div id="insights">
<?php echo "»$RecIns[Oggetto_IT]"; ?>
</div>
<?php } ?>
</div>
</div>
non capisco il perchè il box "insights" supera quello del "contentinsights" cioè è più lungo del box "contentinsights".