Forums / Templates, Stylesheets, Page Layout / How to Text-Wrap Shopping cart icon

How to Text-Wrap Shopping cart icon

Locked

Views: 1,541

Results 1 to 4 of 4
This thread is locked. New replies are disabled.
26 Nov 2007, 6:31 PM
#1
memoomem avatar

memoomem

New Zenner

Join Date:
Jul 2007
Posts:
49
Plugin Contributions:
0

How to Text-Wrap Shopping cart icon

Hi Everyone,

It's difficult to explain in words, so please have a quick look at:

http://dazzlingsoaps.com/index.php?main_page=product_info&cPath=88&products_id=217

As you may have noticed, there is a big vertical distance between facial scrub and facial cleanser dropdown list. That's because the 'add to cart' icon on the right. Is there a way to get rid of this space and pack all the dropdown lists together on the left of the cart icon? I tried the wrapping option of CSS, which works for text but not for the lists...

Thanks a lot in advance!
-MeMo (still learning :smartalec:)

7 Dec 2007, 5:31 PM
#2
memoomem avatar

memoomem

New Zenner

Join Date:
Jul 2007
Posts:
49
Plugin Contributions:
0

Re: How to Text-Wrap Shopping cart icon

Himm... I guess it's not possible then?

7 Dec 2007, 6:01 PM
#3
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: How to Text-Wrap Shopping cart icon

This is happening because there is a <br class="clearBoth" /> below every attribute, which forces it to move below any other floated element which might be on the same line.

You could edit the attribute-building file to eliminate this, though that might have other undesirable consequences.

Alternatively, you could edit tpl_product_info_display.php and put the add to cart block just inside the product attributes div (or add a new div that wraps them both) and style the outer div with
position: relative; and possibly width: 100%;
and the add to cart div with
position: absolute; top: 0em; right: 0em;
so that it hugs the top right corner of the attributes space and doesn't interfere with attribute positioning.

P.S. - I notice you have a reminder to make selections from the dropdowns. If you want to be sure they make selections, you can add another option value ("Select") to each option name, and add that as another attribute value, making it default and display only.

9 Dec 2007, 12:22 AM
#4
memoomem avatar

memoomem

New Zenner

Join Date:
Jul 2007
Posts:
49
Plugin Contributions:
0

Re: How to Text-Wrap Shopping cart icon

Dear Glenn,

Thank you so much for all the ideas! I will try them :)) The 'Add to Cart on top right position' is what I need.

-Memo