I tried making the html layout on the picture. The light blue col-md-2 divs contain images, the darker blue col-md-4 is an image too. The pink divs contain text. Please give a simple html layout which does what’s on the picture.
All columns in Twitter Bootstrap are floating elements. So you can’t get content centre aligned just by Twitter Bootstrap classes. You can try styles like display: table-cell; vertical-align: middle; on the blocks: col-md-8 and col-md-4.
Yes it is possible but each ‘.row’ has to have columns inside of it equal to 12 columns. So the parent column divs equal 12 col-md-8 and col-md-4. But the child divs inside the col-md-8 div does not equal 12. So those would have to be 8 and 4 also. Or 9 and 3… as long as it equals 12. It just depends on what the content will be. Also you can contain all that in a div and center that div to the view port.
But that layout is possible. Below I focused on and made an example on the grid system layout you should be using.
I’ve colored the columns so you can see the grids layout. Hope this helps!
3
Answers
All columns in Twitter Bootstrap are floating elements. So you can’t get content centre aligned just by Twitter Bootstrap classes. You can try styles like
display: table-cell; vertical-align: middle;
on the blocks: col-md-8 and col-md-4.Check http://jsfiddle.net/rajesh14mar/qc9zfpo6/
Yes it is possible but each ‘.row’ has to have columns inside of it equal to 12 columns. So the parent column divs equal 12 col-md-8 and col-md-4. But the child divs inside the col-md-8 div does not equal 12. So those would have to be 8 and 4 also. Or 9 and 3… as long as it equals 12. It just depends on what the content will be. Also you can contain all that in a div and center that div to the view port.
But that layout is possible. Below I focused on and made an example on the grid system layout you should be using.
I’ve colored the columns so you can see the grids layout. Hope this helps!
of course it’s possible. Here is a totally functional example:
Example in Codepen.io