Ik heb het volgende probleem. Voor een admin gedeelte van een website maak ik een productoverzicht. Links van de productinfo staat een image die ik in een div wil hebben ( zo ook de productinfo :
[DIV IMAGE] [DIV PROD INFO]
----------------------------------------------------------------------------- witregel van 1px
[DIV IMAGE] [DIV PROD INFO]
----------------------------------------------------------------------------- witregel van 1px
[DIV IMAGE] [DIV PROD INFO]
enz....
Nu lopen de divs in de onderstaande code compleet door elkaar :
Als ik het zonder inhoud test worden de divs wel goed weergegeven dus in deze situatie :
Wat kan hier de oorzaak van zijn ?
[DIV IMAGE] [DIV PROD INFO]
----------------------------------------------------------------------------- witregel van 1px
[DIV IMAGE] [DIV PROD INFO]
----------------------------------------------------------------------------- witregel van 1px
[DIV IMAGE] [DIV PROD INFO]
enz....
Nu lopen de divs in de onderstaande code compleet door elkaar :
code:
1
2
3
4
5
6
7
8
| echo'<div style="position: absolute; left: 1px; width: 700px;">';
echo'<div style="background-color: #CCCCCC;width: 66px; margin-top: 1px;height: 86px; display:inline">';
echo'[img]"/sport/_shoppic/'.$data[product_id].'.jpg?un='.time().'"[/img]';
echo'</div>';
echo'<div style="background-color: #CCCCCC;width: 633px; height: 66px;margin-left: 1px; display:inline">';
echo' [<a href="ed_products.php?rem_product=go&product_id='.$data[product_id].'">remove</a>] [<a href="ed_products.php?edt_product=go&product='.$data[product_id].'">edit</a>]
'.$data[product_id].' - '.$data[product_name].' - '.$data[product_descr_short].'';
echo'</div></div>'; |
Als ik het zonder inhoud test worden de divs wel goed weergegeven dus in deze situatie :
code:
1
2
3
4
5
6
7
8
| <div style="position: absolute; left: 1px; width: 700px;"> <div style="background-color: #CCCCCC;width: 86px; margin-top: 1px;height: 66px; display:inline"></div> <div style="background-color: #CCCCCC;width: 613px; height: 66px;margin-left: 1px; display:inline"></div> </div> <div style="position: absolute; left: 1px; width: 700px;"> <div style="background-color: #CCCCCC;width: 86px; margin-top: 1px;height: 66px; display:inline"></div> <div style="background-color: #CCCCCC;width: 613px; height: 66px;margin-left: 1px; display:inline"></div> </div> |
Wat kan hier de oorzaak van zijn ?
[ Voor 30% gewijzigd door iznogood op 21-07-2005 21:12 ]
Just as Good