I have a row of images and product descriptions. It looks like this:
The image on the right obviously has a smaller height than the two preceding it. I'd like to make it look more like this:
But I'm at a bit of a loss as to how. Here are the caveats:
- I don't know the dimensions of the images in advance, these are being called in via AJAX from my database
- I don't want a javascript solution, I'd much much prefer a CSS-based solution.
- I'm using
Bootstrap
, if that has any bearing here. - This is built using AngularJS'
ng-repeat
where onerepeat
equals one 'product', as in the images above. Thus creating a<tr>
which contains the row of images and simply giving themvertical-align="middle"
won't work here.
Because of the last factor, I'm assuming it won't be possible to do this without javascript. Here's a JSFiddle which has the code inside:
Any ideas/solutions? I'd gladly display them in a table if it were possible but I can't think of a way how.