Answer the question
In order to leave comments, you need to log in
Wouldn't it be shitcode to use flex inside a bootstrap 3 grid?
Hello everyone, Opencart 2.3 has a standard bootstrap grid - 3 versions. Wouldn't it be shitcode inside row and its column (let's say col-md-n) to write display: flex styles (for example, ul). It's just that flex has so many goodies, and there is no great desire to cut old crutches like indents on margin\padding and display:inline-block.
Answer the question
In order to leave comments, you need to log in
. row and .col are abstract entities that are designed to create a grid, a page frame. They do not have any semantics or meaning, they are just structural elements. Anything can be inside them - and if it is logical to make up on flex, then it needs to be made up on flex.
That is, if you need to make three more columns inside the conditional col-8, inside of which there will be some other content, then it is logical to use one more .row and .col-4 inside, since here we are talking about a grid, a frame. If there is some kind of custom block / element inside, such as a menu or anything else, where all the achievements of Flexbox are needed, you can safely use flexes, there will not be any shit code here.
It won't, it's essentially a div inside a div, and .row and .col are just classes that you can apply any styles to
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question