Problem mit DIV

Geschlossen
citizenK - 27. Mai 2011 um 18:33
 citizenK - 31. Mai 2011 um 12:02
Guten Abend,

ich habe eine Box , die ihre Position und Auflösung ändert.
Ich verstehe wirklich nicht warum.

$data = '<div class="test">' .
' <div style="text-align: center; font-family:Arial, Helvetica, sans-serif; font-size:11px; color:#000; font-weight:bold; "> <a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $random_product["products_id"
]) . '">' . tep_image(DIR_WS_IMAGES . $random_product['products_image'], $random_product['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT) . '</a><br /><a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $random_product['products_id']) . '">' . $random_product['products_name'] . '</a><br /><del>' . $currencies->display_price($random_product['products_price'], tep_get_tax_rate($random_product['products_tax_class_id'])) . '</del><br /><span class="productSpecialPrice">' . $currencies->display_price($random_product['specials_new_products_price'], tep_get_tax_rate($random_product['products_tax_class_id'])) . '</span></div>' .
'</div>';


Hier der Code css:
.test{
position:absolute;
margin-top:400px; margin-left:200px; z-index:1;}

Danke euch

2 Antworten

Hi,


Versuch top anstatt margin-top und left anstatt marjin-left

BS
0
Hallo LöwenHerz ,

Ich habe versucht was du mir gesagt hast , aber leider geht es nicht , das Bild ist immer noch versetzt.

Gruß citizenK
0
Treten Sie der Community bei