0

Here is a demo for my page.

I use jQuery cycle plugin for a slider and I make the photos full height and witdh.

When I zoom the page the picture doesn't stay at the same resolution only when i refresh the page.

Exemple

How can I make the picture stay at the same resolution when I zoom not after refresh?

Sébastien Sevrin
  • 5,267
  • 2
  • 22
  • 39
Razvan
  • 49
  • 9

2 Answers2

1

I use

zoom: reset;

and is working!

Thanks @Kamo

Razvan
  • 49
  • 9
0

The issue that you have mentioned as to zoom which you are trying to control by scripting is not ideal, as this will take effect only when the browser refreshes but not on your client size zoom.

To achieve this, you need to use a background-size:cover;

You can read more about the same HERE

In order to user this, you need to remove images from your code and add them as a background-image via a CSS Class.

Hope this helps.

Nitesh
  • 15,425
  • 4
  • 48
  • 60