Welcome to the LimeSurvey Community Forum

Ask the community, share ideas, and connect with other LimeSurvey users!

Image size in a question according to zoom level

  • MariusR
  • MariusR's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
8 years 9 months ago #122267 by MariusR
Hi everyone,

I'd like to set the size of an image within a question table according to the current zoom level the user has set for his browser. I've managed to do zoom-level-dependent image properties via the "@media screen and (max-width: ..." in my template css, for example setting an image border, but scaling the image itself doesn't work this way. I guess the problem is that image size is hard-coded into the image tag. I was not able to find where in the php and js files these properties might be set; I'd like to remove them, so scaling via the css is possible. Has anyone got an idea?

Cheers!
Marius
The topic has been locked.
More
8 years 9 months ago #122271 by Ben_V
try to play around the following css rule: :unsure:
Code:
img {width:auto !important; height:auto !important}

Benoît

EM Variables => bit.ly/1TKQyNu | EM Roadmap => bit.ly/1UTrOB4
Last Releases => 2.6x.x goo.gl/ztWfIV | 2.06/2.6.x => bit.ly/1Qv44A1
Demo Surveys => goo.gl/HuR6Xe (already included in /docs/demosurveys)
The topic has been locked.
  • MariusR
  • MariusR's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
8 years 9 months ago #122411 by MariusR
That did the trick. Thanks a lot! :-)
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose