X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   Center the rating box (https://forum.x-cart.com/showthread.php?t=64640)

torbenbendixen 08-21-2012 09:45 AM

Center the rating box
 
How can I center the rating box
I have centered all other elements, but don't know how to center the rating box.
My problem is if I center it with CSS on this page http://www.damido.com/solbriller/ then it is all wrong on this page http://www.damido.com/Nederdele/ because there is only 1 product in the last link.
Does anybody know how to fix this?

Thank you!!

totaltec 08-21-2012 10:10 AM

Re: Center the rating box
 
Try editing the css for the element to this:
.creviews-rating-box {
margin-top: 5px;
padding-bottom: 7px;
margin-left: auto;
margin-right: auto;
width: 110px;

}

Setting the margins to auto and supplying a width should center it. Hope that does the trick. :-)

torbenbendixen 08-21-2012 11:28 AM

Re: Center the rating box
 
Works perfect!

Thank you very much for the help!!


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

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.