When a node has multiple amazon items, the display of those items runs together.

reikiman - July 3, 2008 - 06:38
Project:Amazon
Version:6.x-2.x-dev
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:active
Description

I've defined an amazon field on my blog nodes that allows multiple amazon items to be added.

If I add multiple items, when the node is displayed the items are run together and displayed badly.

The display is fixed if, in amazon-item.tpl.php, the outer div is changed to have style=clear:both as below:

<div class="<?php print $classes; ?>" style="clear:both">

#1

tcblack - September 16, 2008 - 16:37

I believe this is a CSS issue. I applied the change you suggested and saw no difference. The problem is caused by floating the image left in the CSS. This causes each successive image to be floated left but they appear to be nested because that's the way floated images flow.

Rather than floating left, turn off the float with float:none and the problem goes away.

Alternatively play with the amazon.css file to get what you're looking for.

 
 

Drupal is a registered trademark of Dries Buytaert.