News:

AbanteCart v1.4.2.1 is released.

Main Menu

Do you like AbanteCart? Please rate AbanteCart or share your experience with other eCommerce entrepreneurs. Go to Softaculous rating page to add your rating or write a review

Change image width from fixed to percentage?

Started by Old-Paul, December 12, 2023, 12:28:10 PM

Previous topic - Next topic

Old-Paul

In my attempts to make my cart more mobile friendly I want to adjust image widths to percentage as opposed to fixed hard coded width. Is there a way to change that configuration?

isaachackett

With a simple CSS update, you may convert the picture width from a fixed amount to a percentage. Set the width to a percentage (e.g., width: 100%;) rather than a fixed value (e.g., width: 300px;). By doing this, the images will become responsive and change to fit the size of the screen. For the percentage to function properly, just make sure the parent container has a specified width. Have fun with your coding!


Forum Rules Code of conduct
AbanteCart.com 2010 -