コミュニティアチーブメントバーを展開する。

Submissions are now open for the 2026 Adobe Experience Maker Awards.

Mark Solution

この会話は、活動がないためロックされています。新しい投稿を作成してください。

解決済み

AEM Forms basicTheme.css overwriting my own style

Avatar

Level 3

Hi,

I am currently having a problem where the basicTheme.css, that comes with the Forms package, is overwriting other parts of my site. Is it possible to make the Form styles only effect elements within that form?

Or am I going to have to use !important in my own styles?

Thanks,

Karl

1 受け入れられたソリューション

Avatar

正解者
Level 5

No using !important is not a best way.You can go for make seperate clientLib for overriding the css having all you required css which you want to override and load at the end of Form loading or at the end of Page.

元の投稿で解決策を見る

4 返信

Avatar

Level 5

Hi

Use !important is good to put because if you use Form anywhere in your Page by default basicTheme,css will applied.To take your css as priority use !important.

Avatar

Level 3

Is this really the best way?

Thanks,

Karl

Avatar

正解者
Level 5

No using !important is not a best way.You can go for make seperate clientLib for overriding the css having all you required css which you want to override and load at the end of Form loading or at the end of Page.

Avatar

Level 3

Thanks Zee.