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?
Solved! Go to Solution.
Views
Replies
Total Likes
Hi,
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:
You can learn more here:
https://getbootstrap.com/docs/5.3/customize/sass/
https://getbootstrap.com/docs/5.0/getting-started/build-tools/
https://getbootstrap.com/docs/5.3/customize/overview/
Hope this helps
Hi,
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:
You can learn more here:
https://getbootstrap.com/docs/5.3/customize/sass/
https://getbootstrap.com/docs/5.0/getting-started/build-tools/
https://getbootstrap.com/docs/5.3/customize/overview/
Hope this helps
Views
Likes
Replies