Community Forums 

Main Content

Re:Can anyone center the cart product images?

    Nov 05 2017 14:03:30



    Join date : 2008-09-18      Posts : 418

    Brian R. Smith said The product images in the cart are 90px wide by default and in a "TD" tag. Is there way to center the image left to right in the TD tag? I've tried everything I can think of using custom CSS.

    I've tried setting the margins to auto, adding padding, text-align=center, etc. Nothing seems to work!

    Any cart gurus know how to center images? They are smashed against the left side of the cart and look weird.

    To centre the image, modify the class .thumbnail by adding:

    display: block;
    margin-left: auto;
    margin-right: auto;