Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed height, scroll horizontally #2523

Open
Rylon opened this issue Oct 22, 2020 · 0 comments
Open

Fixed height, scroll horizontally #2523

Rylon opened this issue Oct 22, 2020 · 0 comments

Comments

@Rylon
Copy link

@Rylon Rylon commented Oct 22, 2020

Hi, is it possible to set a fixed height to something like 90% of the viewport, and have the image scale down accordingly, with scrollbars horizontally, for example to better show a zoomed panorama. I'm almost able to achieve this with an iframe type, if I set the href to the larger image, and then use web inspector to set object-fit: scale-down; height: 100%; directly to the IMG then it seems to work, but I'm not sure how to achieve this normally.

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant