0
I use the Banner do Ebit for customers to be able to evaluate the purchase on the website, however the lightbox it always appears behind all the elements of the page. How to make him appear in front of everything?
The code below is a short version of what is required for the banner to load.
<a id="bannerEbit"></a> <!-- Aqui ele carrega o banner com o background "banner.gif" do próprio Ebit -->
<script id="getSelo" src="https://imgs.ebit.com.br/ebitBR/selo-ebit/js/getSelo.js?storeId&lightbox=true"></script> <!-- Script do ebit de onde vêm as informações e o lightbox -->
as ALMOST should be (just to see the lightbox in this example without the background)
as it is (Notice that the shadow still appears behind, ie the lightbox is loading behind everything)
Tried to configure z-index?
– hugocsl
how to configure z-index by having an external script by calling a variable?
– Ciano Barbarossa
Z-index is a CSS class that controls the "Z-axis" of the elements. Summarizing it brings one element forward of the other, provided that the element also has a set "position". The bigger the z-index, the more the Element comes forward from the others. Here you can read about https://www.w3schools.com/cssref/pr_pos_z-index.asp
– hugocsl