Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

SOLVED

How to avoid Overlay placeholder on top of component

viswac
Level 2
Level 2

I have a template with "wcm/foundation/components/responsivegrid".

when in insert a component into the page, the "drag component here" place holder showing up on top of the component. Usually it should be at the bottom of the page.

overlab.JPG

After debugging using developer console, i found out that it's css conflict between my app css and author ui css.

How to avoid this css conflict ? or do i need to make changes in my app css (This will be my last option) ?

1 Accepted Solution
Veena_Vikram
Correct answer by
Community Advisor
Community Advisor

okay. is your place holder inside the parent div and is the parent div appearing properly ? Can you take a screenshare (a video grab) and show the inspect element which replicates the issue ?

CSS issue is something which needs a working session to fix Viswac. But for now can you try adding position: relative or position:absolute and see which will work.

View solution in original post

0 Replies
smacdonald2008
Level 10
Level 10

What CSS are you using in your AEM App? Where are you loading it?

Veena_Vikram
Community Advisor
Community Advisor

This clearly says that u have some class names which is same as for Author UI used by AEM. The most genuine way to solve this issue is to fix your APP css. When designing your HTML, please make sure not to have any class names which may conflict with AEM Author UI or any other such things.

viswac
Level 2
Level 2

I am not allowed to post complete css, but to show i am using following css class

.le_getstarted_carosuelCon{ width:100%;  float:left;  min-height:243px;  border-bottom:1px solid #eee}

from the above class if i remove "float: left" i can able to solve this problem and i have my css in etc/design/myapp/clientlib-myapp/css/myapp.css.

As you can clearly see "vle_gettingstarted_carosuelContainer" name is not used by AEM author UI (As far as i know). I checked complete app css file.

I know this may not help you to understand the problem completely, help me with you suggestion.

viswac
Level 2
Level 2

@Veena_7  pls see read above answer.

Veena_Vikram
Correct answer by
Community Advisor
Community Advisor

okay. is your place holder inside the parent div and is the parent div appearing properly ? Can you take a screenshare (a video grab) and show the inspect element which replicates the issue ?

CSS issue is something which needs a working session to fix Viswac. But for now can you try adding position: relative or position:absolute and see which will work.

viswac
Level 2
Level 2

Thanks @Veena_7. i fixed the issue with a div applying "clear:both" at the end of the component.