-
Notifications
You must be signed in to change notification settings - Fork 207
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
Multiple images inside imageliquid container causes a problem #24
Comments
Multiple imgLiquid images: <div class="imgLiquidFill imgLiquid" style="width:300px; height:200px;">
<img alt="Woody" src="Woody1.jpg" />
</div>
<div class="imgLiquidFill imgLiquid" style="width:300px; height:200px;">
<img alt="Woody" src="Woody2.jpg" />
</div>
<div class="imgLiquidFill imgLiquid" style="width:300px; height:200px;">
<img alt="Woody" src="Woody3.jpg" />
</div> |
Hi.
|
Try this.
|
That won't work because imgLiquid is supposed to be behind the other content, serving as a background. In fact in my real life usage i don't set a width and height, because the inside content stretches the parent imgLiquid to the right size. |
I suggest an alternative way to provide the source image is via a data-attribute on the div. So no image element is needed and no other child-elements need be affected.
|
Replicated this. @Frique's solution seems okay, but I specifically want to use imgLiquid because it uses an |
Found the solution. Replace And only the first image will be taken for the container, the rest will remain as is. |
I'm applying the plugin on a div which has other elements inside it (as a large photo background). When the child elements have images, they are hidden by the plugin. Please target all imageLiquid elements by class/id so it doesn't affect other elements within the selector's ranges.
(similar to the other issue regarding a:first)
The text was updated successfully, but these errors were encountered: