Answer the question
In order to leave comments, you need to log in
How to implement adaptive image resizing?
Good afternoon.
Google didn't help.
Task:
Given a URL to a random image, using css to fit it into the screen without losing proportions.
Specifics:
<div style="width: 100%; height:100%">
<img src="рандом">
</div>
.widthScale {
max-width: 100%; max-height: 100%; width: 100%; height:auto
}
.heightScale {
max-width: 100%; max-height: 100%; width: auto; height:100%
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question