Centering of Best Seller DIVS

22.12.2011 17:21
#1
jmil
Joomshopping forum user no avatar
Name: Jim Miller
19.09.2011
Posts: 89
Quote
Centering of Best Seller DIVS

I changed my Bestseller Mod for a Horizontal vs a Vertical by adding the following code to my default CSS.

.bestseller_products .block_item{
width: 150px;
height: 150px;
float: left;
margin-left: auto;
margin-right:auto;
}

I put the Margins in to hopefully center the Image and Text in each individual container instead of a LEFT Margin with no Luck. I also playedd with the Padding and a few other tricks but still no luck.

Does anyone have a CSS Hint to help me center the images and Text in the the Container?

You can view it here on the Home page www.wildbikers.com

 
22.12.2011 17:59
#2
jmil
Joomshopping forum user no avatar
Name: Jim Miller
19.09.2011
Posts: 89
Quote
Aw: Centering of Best Seller DIVS

SOLVED - Just Played with the CSS and added one line DUHHH

Hope this helps someone else too!

.bestseller_products .block_item{
width: 150px;
height: 150px;
float: left;
text-align:center;
margin-left: auto;
margin-right:auto;
}

IF you add some padding at the Top you can center it even more in the container:

padding-top:20px;


Letzte Ă„nderung: 22.12.2011 18:04
 
Copyrights MAXXmarketing GmbH. All Rights Reserved