How can i hide (Let it be on the page somewhere and the user shouldnt see it) a div using some tricks with Z-Index ? I dont want to put style=”display:none;” to the div to hide it.
Any thoughts ? Looking for a solution which works in major browsers
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Use
visibility: hiddenor change the opacity. This will allow the element to be in the document’s layout (it will occupy space), but it will not be shown. If you don’t want it to occupy the layout, thendisplay: noneshould be what you use. I would not recomment usingz-indexfor this purpose.