php - How can I make my privacy alert in-front of all DIVs, RevSlider etc

688

Check out my site; http://sequoiasystems.org.

I included a a privacy alert because of new EU Regulation, but the alert goes behind some of my website components like other DIVs and Revolution slider...

I have tried some CSS, but nothing seems to work.

634

Answer

Solution:

You can probably fix it by giving it a high z-index. You can do it two ways.

1.) Use inline style attribute:

<div id="myDiv" class="page_speed_1627182137">This is my privacy warning</div>

2.) Use CSS with a class:

 .myclass {

    z-index: 100;
}

<div id="myDiv" class="myClass">This is my privacy warning</div>

People are also looking for solutions to the problem: php - Sorting html table based on input field

Source

Didn't find the answer?

Our community is visited by hundreds of web development professionals every day. Ask your question and get a quick answer for free.

Ask a Question

Write quick answer

Do you know the answer to this question? Write a quick response to it. With your help, we will make our community stronger.

Similar questions

Find the answer in similar questions on our website.