meetDeveloper / Dictionary-Anywhere

Dictionary extension that helps you stay focused on what you are reading by eliminating the need to search for meaning.
GNU General Public License v3.0
267 stars 54 forks source link

Added ZIndex property to fix div hidden #33

Closed AxelDavid45 closed 3 years ago

AxelDavid45 commented 4 years ago

I added a Z-Index property to fix a problem in some websites where the div that contains the word information is hidden. For example, in the Google Assistant Documentation, the div that contains the word information is under the information because of the z-index.

meetDeveloper commented 4 years ago

@AxelDavid45 I was avoiding this as I don't know much about z-index. I tried changing z-index, and value of 99999 seems to fix all problems. Any reason to prefer 10000?

AxelDavid45 commented 4 years ago

@AxelDavid45 I was avoiding this as I don't know much about z-index. I tried changing z-index, and value of 99999 seems to fix all problems. Any reason to prefer 10000?

Not really, but I think that is common to have until 1000 on your webpage, so with 10000 you put the div before everything because the value is greater than the others.

meetDeveloper commented 3 years ago

@AxelDavid45 Will it be okay to keep it little more high, just to make sure it always come on top.

AxelDavid45 commented 3 years ago

@AxelDavid45 Will it be okay to keep it a little more high, just to make sure it always come on top.

Yeah, actually as highest the number, it will be always on top. I found this question on stackoverflow. I migth help to disappeared some doubts https://stackoverflow.com/questions/491052/minimum-and-maximum-value-of-z-index

AxelDavid45 commented 3 years ago

I updated the ZIndex property