1

So I am trying to apply a style to a specific div of my web mapping project. But I don't get why it's not working. I want that to specific div to be transparent, but it's overriten by a rule that gives the background-color #808080 and I can not locate the rule responsible for it. The dev tool says only for source. enter image description here

How can I find the source of the rule background-color: #808080!important?

5
  • Are you use bootstrap? Commented Dec 22, 2021 at 12:11
  • @MrSalamikuchen Can you share html and releant css, please? Commented Dec 22, 2021 at 12:11
  • Try to set to the class titlePane the background-color Commented Dec 22, 2021 at 12:12
  • @Maik Lowery: Hi, here's the link to the page. wasserwiki.eu/Wasserwiki_App Commented Dec 22, 2021 at 12:15
  • try adding body before .esriPopup .titlePane like this (body .esriPopup .titlePane).. or any parent class of .esriPopup see if this works Commented Dec 22, 2021 at 12:22

2 Answers 2

1

When two similar styles (in the different selectors) have !important, the style be applied that its specificity has more priority. For that reason when you add body before .esriPopup, the priority of your style is more.

For more information about it, you can read this article.

Sign up to request clarification or add additional context in comments.

Comments

0

The tip from @sanket is the solution:

body .esriPopup .titlePane {
    background-color: transparent!important;
}

Adding "body" did the trick.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.