AbanteCart Community

AbanteCart Development => Customization help => Topic started by: Old-Paul on December 12, 2023, 12:28:10 PM

Title: Change image width from fixed to percentage?
Post by: Old-Paul on December 12, 2023, 12:28:10 PM
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?
Title: Re: Change image width from fixed to percentage?
Post by: isaachackett on November 14, 2024, 05:22:25 AM
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!