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?
=========================================
  What does "retired" mean?  I'm almost 78 still doing this crap!

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 -