I’m trying to achieve the below while still retaining it’s fluid/flexible/responsive layout.
So basically I have a 3 column section where the two images on the right are loaded with no set width and height and the div on the left is a p tag that i want to expand to match the height of the images.
OK so the the plugin im using for the responsive images is imgLiquidFill. It takes no initial set width and height, instead taking my max-height and applying the it’s picture fill techniques accordingly.
Here is the HTML and CSS for the area in question:
<div class="row">
<div class="span4 fpBlockItem"><p>Some big callout text goes here!</p></div>
<div class="span4 imgLiquidFill fpBlockItem">
<img src="img/dummy-images/01.jpg" alt="01">
</div>
<div class="span4 imgLiquidFill fpBlockItem">
<img src="img/dummy-images/04.jpg" alt="03">
</div>
</div><!-- end row -->
I added the table-cell property to the span4 as you said - that didn’t work. I also added it to the fpBlockItem class as that class was being called last so it should go there. That didn’t work either.
Hey Ralph, thanks for the reply. Yeah I just realised that I didn’t clean up the code before I saved it, to remove all the little code i tested. Removed now.
The problem is still there - I’m using twitter bootstrap as the base (not my decision) and the code you removed prevents the layout from functioning correctly.
This is why I refuse to use frameworks. What a mess, to have to sidestep unnecessary code that just gets in the way. Anyhow, this seems to be messing it up:
Tell me about it. So sick of these frameworks that everyone thinks are freaking awesome. They are not supposed to be used on production sites!!! FFS they are rapid prototyping tools that now have morphed into a “framework” which new devs have picked up cos it’s easy for them to build a basic looking site. Grrrrrrr. /rant
Yeah I kinda need that for other code on the site. If I remove it then gotta go through and see what else if affects. Daaaamn.
No worries, I feel your pain. Anyhow, though, jQuery shouldn’t be needed for anything like this. If necessary, add an extra class to the wrapper and add that class to your rules to make sure they only apply to this section of code.