Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

change product list layout position center div's vertical

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 09-28-2009, 11:34 AM
  Hyperdelicious's Avatar 
Hyperdelicious Hyperdelicious is offline
 

Senior Member
  
Join Date: Sep 2002
Location: In the Middle of Nowhere
Posts: 138
 

Default change product list layout position center div's vertical

In X-Cart version 4.2.2... I'm trying to get my product list page to display items horizontally like this:

Code:
--------------------------------------------------------------------- | IMAGE | DESCRIPTION | PRICE | QTY | BUY NOW | --------------------------------------------------------------------- | IMAGE | DESCRIPTION | PRICE | QTY | BUY NOW | --------------------------------------------------------------------- | IMAGE | DESCRIPTION | PRICE | QTY | BUY NOW | --------------------------------------------------------------------- | IMAGE | DESCRIPTION | PRICE | QTY | BUY NOW | --------------------------------------------------------------------- | IMAGE | DESCRIPTION | PRICE | QTY | BUY NOW | ---------------------------------------------------------------------

Image, desc, price, qty, and buy now are each in their own Div enclosed in the item div ie.

<div id=item>
<div id=image></div>
<div id=desc></div>
<div id=price></div>
<div id=qty></div>
<div id=buy></div>
</div>

of course their is more coding ... just trying to keep this brief...

Anyway... I cannot get my Div's centered vertically ... any ideas?
Reply With Quote
  #2  
Old 09-28-2009, 04:28 PM
  cflsystems's Avatar 
cflsystems cflsystems is offline
 

Veteran
  
Join Date: Apr 2007
Posts: 14,191
 

Default Re: change product list layout position center div's vertical

try

vertical-align: middle

in id item class
__________________
Steve Stoyanov
CFLSystems.com
Web Development
Reply With Quote
  #3  
Old 09-29-2009, 06:52 AM
  Hyperdelicious's Avatar 
Hyperdelicious Hyperdelicious is offline
 

Senior Member
  
Join Date: Sep 2002
Location: In the Middle of Nowhere
Posts: 138
 

Default Re: change product list layout position center div's vertical

tried that did not work... I never have much luck with vertical-align... seems very fickle... read that vertical-align does not work with block elements... tried changing my div's to inline and table-cell... still did could not get it to vertically center my div's.... any ideas?
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 02:56 PM.

   

 
X-Cart forums © 2001-2020