Skip to main content
Level 4
Mar 21, 2023 3:46 AM UTC
Solved

bootstrap client library issues in container grid in AEM author instance

Hi Team,

 

using AEM as a cloud service , where we have added bootstrap library in page policy . now its conflicting container grid  due to this we have left and right margin getting added on the page

how we can resolve this ?

 

 

adding custom style from container policy and apply full width property to custom class?

 

 

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
B_Sravan
B_SravanAccepted solution
Community Advisor
Mar 21, 2023 5:26 AM UTC

Hi @sonuk85184451 ,


This is expected as the bootstrap load margin-related style at the page level. In our projects, we usually add a margin:-15px at the root level to remove this. 
As you said, you can alter this behavior with a custom class.
Thank you.

Regards,

Sravan

2 replies

B_Sravan
Community Advisor
B_SravanCommunity AdvisorAccepted solution
Community Advisor
Mar 21, 2023 5:26 AM UTC

Hi @sonuk85184451 ,


This is expected as the bootstrap load margin-related style at the page level. In our projects, we usually add a margin:-15px at the root level to remove this. 
As you said, you can alter this behavior with a custom class.
Thank you.

Regards,

Sravan

Translate
May 2, 2024 11:57 AM UTC

Hey, I'm currently in the same situation. I'm new to aem development. Could you explain to me how you fix it?

Translate