I create a responsive website and use a grid. Of course, mesh boxes do not have a given height. they are fluid. The image placed inside them will determine the height declaration, then it will scale with the available width of the viewport.
I am trying to make text on top of the image and vertically align the text in the middle of the image.
I read a ton of posts there on vertical alignment, but no one seems to address this with a responsive field.
I installed the fiddle using only the condensed css needed to replicate my grid for this example. I use 2 gray dummy images. I want to overlay text and align text vertically. How will this be done? Any ideas? Id prefers to do this only with css if jquery is absolutely necessary, but I think only css can do this.
http://jsfiddle.net/zjDuE/
<div class="grid"> <div class="row"> <div class="c6"><img src="http://dummyimage.com/600x400/cccccc/cccccc.jpg" alt="-" /></div> <div class="c6"><img src="http://dummyimage.com/600x400/cccccc/cccccc.jpg" alt="-" /></div> </div> </div>
source share