Help on z-index

-1

Good Night,

I'm developing a website but I'm tired of trying and nothing, the question is this:

  • I have a fixed contact box on the right side but it does not appear, so I read that I have to set the z-index, I adapted a script I bought in the themeforest but it does not appear on the site.

www.agemper.pt/novo/index.html

Default script default code

#slideit {
    z-index:999999; /* Keep the item above all other elements on the page */
    position:fixed;
    width: auto; /* Width of the wrapper of the section. Adjust this value if you want wider elements */
    height: 100%;
    top: 0; /* Vertical position of the elements */
    right: 0; /* Horizontal position of the elements */
}

Hugs

    
asked by anonymous 10.11.2017 / 01:05

1 answer

0

If it is fixed it can not be proportional or automatic the value of width or height, because it will not be based on anything to be auto or with percentage. Change the value to px, eg

 #slideit {
    z-index:999999;
    position:fixed;
    width: auto; 
    height: 100%;
    top: 0; /* Vertical position of the elements */
    right: 0; /* Horizontal position of the elements */
}

Another detail, I do not know if it's the same or behavior, but I think (I just think) that you want it in the footer, so put it as a bottom: 0, but if it's to be at the top of the page, it's right.  One more detail, to 'see' it, put a background in the div, preferably with color to give contrast until you can place where you want, this way would be:

#slideit {
        z-index:999999;
        position:fixed;
        width: 200px; 
        height: 100px;
        bottom: 0; 
        right: 0; 
        background: #000;
    }
    
10.11.2017 / 01:52