how to create overlay on div ?



how to create overlay on div ?..

Answer / Krishna Gopal

To create an overlay on a div using CSS, you can use the following approach:
1. Create a new div for the overlay with a black background and full width and height. Set its position to absolute and z-index higher than the content div.
2. Hide the overlay initially using CSS display property (display: none).
3. Add an event handler for the content div to show or hide the overlay as needed.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More ASP Interview Questions

What inheritance is and an example of when you might use it?

1 Answers  


How do I create an aspx file?

1 Answers  


can we place Global.asa into "bin" directory instead of Root directory?

3 Answers   Satyam,


What is the use of following Statement Response.Expires=120 A.The page will be removed form cache after 120 Hours B.The page will be removed form cache after 120 Sec C.The page will be removed form cache before 120 Min D.The page will be removed form cache after 2 Hours

1 Answers  


What is the difference between Cookies collection and Form/Querystring collection?

1 Answers  


How many global.asa files can an Application have?

2 Answers  


Explain the life cycle of asp page.

1 Answers  


What is pdf aspx?

1 Answers  


Define unmanaged code?

1 Answers  


What is a FileSystemObject object?

1 Answers  


what is execute dataset for sp

1 Answers  


Explain the difference between client-side script and server-side script?

1 Answers  


Categories