1

looking for a way to use a grid layout for CMS pages (such as home page) of magento2 - theme copied from Luma into a custom.

would like to have the ability to set up two divs to float side by side, like you can do with bootstrap such as this:

<div class="container">
    <div class="row">
        <div class="col-sm-12"></div>
        <div class="col-sm-6"></div>
        <div class="col-sm-6"></div>
    </div>
</div>

but without creating custom classes for it? (I tried adding bootstrap, but it comflicts with whatever Magento is using for Luma's responsiveness) - so I figured, maybe they have some classes I can tie into?

1 Answer 1

3

You need to go to bootstrap website and customize bootstrap before downloading.

When you are on the page disable all options but "Grid system" after that scroll all the way down to download the zip file.

In the zip file you will find bootstrap.css file, you can add it straight away because it won't conflict with Magento 2 own css.

1
  • Thank you so much! that's exactly what I needed, I didn't know I could do that!
    – M21
    Commented Nov 22, 2016 at 14:25

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.