Greetings!
Working with a new HTML5 theme and in an attempt to make my landscape oriented product images a little larger, I have burnt my brain out trying to find hat css code my work to get those images centered. I just spent way too much time on such a small thing trying different position, alignment, and centering codes. Nothing is working.
The code I am working with is:
.product-item .img img {
max-height: 100%;
max-width: 150%;
}
I have purposely made the max-width 150% so the horizontal images can display a bit larger. And, that has nudged all of the horizontal images to the right. Simply seeking whatever lines of css i might need to tell that image to stay centered. :-)
This code is directly affecting images on my home page which you can view at: Welcome to The Sound Healing Store - Igniting The Spirit of Sound for Peace of Mind and Soul Awakening
Thanks for any suggestions you have!
~ Antonio ~
Working with a new HTML5 theme and in an attempt to make my landscape oriented product images a little larger, I have burnt my brain out trying to find hat css code my work to get those images centered. I just spent way too much time on such a small thing trying different position, alignment, and centering codes. Nothing is working.
The code I am working with is:
.product-item .img img {
max-height: 100%;
max-width: 150%;
}
I have purposely made the max-width 150% so the horizontal images can display a bit larger. And, that has nudged all of the horizontal images to the right. Simply seeking whatever lines of css i might need to tell that image to stay centered. :-)
This code is directly affecting images on my home page which you can view at: Welcome to The Sound Healing Store - Igniting The Spirit of Sound for Peace of Mind and Soul Awakening
Thanks for any suggestions you have!
~ Antonio ~
Comment