I am using twitter bootstrap and I would like to align the vertical div block with the image and text on the right.
Here is the code:
<ol class="row" id="possibilities"> <li class="span6"> <div class="row"> <div class="span3"> <p>some text here</p> <p>Text Here too</p> </div> <figure class="span3"><img src="img/screenshots/options.png" alt="Some text" /></figure> </div> </li> <li class="span6"> <div class="row"> <figure class="span3"><img src="img/qrcode.png" alt="Some text" /></figure> <div class="span3"> <p>Some text</p> <p>Some text here too.</p> </div> </div> </li> </ol>
I tried this but not wortks:
.span6 .row{display: table;} .span6 .row .span3, .span6 .row figure{display:table-cell; vertical-align: middle;}
I also tried:
.span6 .row .span3{display: inline-block; vertical-align: middle;}
No it works. Does anyone have an idea? Thanks in advance.
html css html5 twitter-bootstrap-2
bgondy Jul 21 2018-12-12T00: 00Z
source share