Jump to content

Responsive image and api resize


pwired
 Share

Recommended Posts

Hi,

I have a simple right arrow that walks the visitor from page to page, this right arrow is a simple jpg picture.

I use following css to have the right arrow jpg responsive:

.img{
    height: auto;
    max-width: 100%;
    width: auto;
}

However when I have a big version of an arrow.jpg and use api to resize it like this $arrow = $arrow->width(50);

it stops being responsive. When I take out the part $arrow = $arrow->width(50); it is responsive again.

But then I have to resize the big arrow picture outside with a picture editor before I use it in the backend.

Any Ideas how to be able to use $arrow = $arrow->width(50); without the responsive css stop to work ?

See second post.

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...