Site maintenance: Tuesday 17 Nov, from 10:00 UTC, about 4–6 hours. Details

This cutover relies on some testing that is still incomplete so may be cancelled at short notice

Forums / Templates, Stylesheets, Page Layout / How to align price and QTY box in product listing??

How to align price and QTY box in product listing??

Started by wacamatic on 14 Feb 2013, 3:42 AM · Views: 1,102

Results 1 to 3 of 3
14 Feb 2013, 3:42 AM
#1
wacamatic avatar

wacamatic

New Zenner

Join Date:
Nov 2012
Posts:
13
Plugin Contributions:
0

How to align price and QTY box in product listing??

Hi All,

I've done a small modification to remove the <br> between a product price and the QTY box in the product listing page (subcategory with items) but these price/QTY boxes do not align with the other data in the adjacent columns now. While all other columns seem to be centered vertically the price column is up against the top margin.

Does anyone know if these items have a class or something that can be styled in CSS?

I see that all table data in product listings are productListing-data, but the price column also has align=right. This would lead me to believe that it can be styled independently of the other data.

But how? Help?

Example here http://www.drillplace.com/store/index.php?main_page=index&cPath=907_913

Thanks,
Warren

14 Feb 2013, 3:09 PM
#2
philip937 avatar

philip937

Totally Zenned

Join Date:
Aug 2009
Location:
Bedford, England
Posts:
968
Plugin Contributions:
0

Re: How to align price and QTY box in product listing??

wacamatic:

Hi All,

I've done a small modification to remove the <br> between a product price and the QTY box in the product listing page (subcategory with items) but these price/QTY boxes do not align with the other data in the adjacent columns now. While all other columns seem to be centered vertically the price column is up against the top margin.

Does anyone know if these items have a class or something that can be styled in CSS?

I see that all table data in product listings are productListing-data, but the price column also has align=right. This would lead me to believe that it can be styled independently of the other data.

But how? Help?

Example here http://www.drillplace.com/store/index.php?main_page=index&cPath=907_913

Thanks,
Warren

how about tring this in your css file

#indexProductList input {
margin-top:3px;
}

or something similar?

Phil Rogers
A problem shared is a problem solved.

14 Feb 2013, 3:35 PM
#3
philip937 avatar

philip937

Totally Zenned

Join Date:
Aug 2009
Location:
Bedford, England
Posts:
968
Plugin Contributions:
0

Re: How to align price and QTY box in product listing??

or you could try:

.productListing-data {
vertical-align:middle;
}

however I imagie this is probably already being alpplied and its actually global styling on the input field that throws it.

just have a fiddle and see what works.

Phil Rogers
A problem shared is a problem solved.