-
Notifications
You must be signed in to change notification settings - Fork 168
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
Not responsive #61
Comments
You can specify a height in percentage |
That doesn't make it responsive, that makes is a % of the container height, whereas the image width is 100% is what dictates its height of auto. |
Instead of just |
Is there any solution for this yet? |
It should take ratio and calculate height based on width of component. Like responsive embed in foundation. |
Here is the solution <LazyLoad className="responsive">
<img src='http://apod.nasa.gov/apod/image/1502/HDR_MVMQ20Feb2015ouellet1024.jpg' alt='' width="1024" height="762" />
</LazyLoad> .responsive {
position: relative;
height: 0;
padding-bottom: 75%;
overflow: hidden;
}
.responsive iframe,
.responsive object,
.responsive embed,
.responsive video,
.responsive img {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
} |
Will add to the example. |
With the requirement of a fixed height setting, this plugin fails to work inside modern apps where responsive layouts are a standard requirement.
The text was updated successfully, but these errors were encountered: