Forums / Templates, Stylesheets, Page Layout / Increase Width of Model Column

Increase Width of Model Column

Locked

Views: 949

Results 1 to 6 of 6
This thread is locked. New replies are disabled.
1 Feb 2009, 2:40 AM
#2
tony_sar avatar

tony_sar

Totally Zenned

Join Date:
Jul 2006
Location:
Montreal, Canada
Posts:
2,276
Plugin Contributions:
0

Re: Increase Width of Model Column

in your stylesheet.css around line 554 there are lots of Class and div Id selector .. with only one entry ..

text-align:center;

add the following and see if that would help

vertical-align:top;

i can only test one page , so i can not tell the effect on other pages. as this will effect any class and div selectors.

1 Feb 2009, 8:31 PM
#4
best_price_accessori avatar

best_price_accessori

Zen Follower

Join Date:
Dec 2008
Posts:
155
Plugin Contributions:
0

Re: Increase Width of Model Column

Worked like a treat thanks. However, the timeframe is still pushed down a line. Any ideas?

1 Feb 2009, 9:16 PM
#5
gjh42 avatar

gjh42

Black Belt

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

Re: Increase Width of Model Column

It's not that the timeframe is pushed down, it's that the price is artificially high. The table-cell contents are all vertically centered by default, but the price cell has four invisible <br /> and one <a> element as well as the price; all of those take up space, and what you can see is the price at the top of the stack.

To get rid of the display of those, add this to your stylesheet:

.productListing-data br {display: none;}

There are no other breaks within the listing cells, so this should not have any negative effects.

Alternatively, you could set the vertical alignment for all listing cells:

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

but this looks awkward to my eye. Adding

padding-top: 0.8em;

would increase the height of the listings, which might or might not be ok, and still leaves the price and timeline higher than the title. You would then have to pull the title back up like this:

h3.itemTitle {margin-top: -0.8em;}

2 Feb 2009, 5:22 PM
#6
best_price_accessori avatar

best_price_accessori

Zen Follower

Join Date:
Dec 2008
Posts:
155
Plugin Contributions:
0

Re: Increase Width of Model Column

gjh42: Thank you so much. Worked perfectly.