Expand my Community achievements bar.

Enhance your AEM Assets & Boost Your Development: [AEM Gems | June 19, 2024] Improving the Developer Experience with New APIs and Events

Bootstrap in a project


Level 1
I'm using bootstrap for my aem training, but I have a slight problem. Using my clientlib with bootstrap overrides the default aem grid, or bootstrap adds its own on top of it. The issue is that the page now shows very different margins in the root container. How could I solve it?





1 Reply


Community Advisor


The issue lies with the class names because AEM uses the same names for some of their classes as Bootstrap does. For example, "container". So the best solution is to compile your own version of Bootstrap and rename the out-of-the-box (OOTB) classes


In short, you should follow this process:

  1. Open the SASS (LESS) sources
  2. Find and replace the classes you want to rename
  3. Compile that with a SASS / LESS compiler


You can learn more here: 





Hope this helps

Esteban Bustamante