Simo Edwin
Simo Edwin

Reputation: 1

How can I achieve a 2 column layout with bootstrap in a wordpress theme

This is the problem I am experiencing...I cannot get the content to lay in 2 columns..they start stacking vertically.[enter image description here][1]

https://i.sstatic.net/teAWT.jpg

Upvotes: 0

Views: 51

Answers (1)

Bartek Smagacz
Bartek Smagacz

Reputation: 138

col-md-6 in bootstrap means that you will have only one column. This can fix firstly (https://getbootstrap.com/docs/4.0/layout/grid/)

If you change this you can use display flex to put elements correctly (cool guide: https://css-tricks.com/snippets/css/a-guide-to-flexbox/)

Last issue, the browser window can be too small to check this. Try to make it bigger ;)

Upvotes: 2

Related Questions