Show layer and disable clicking other body elements

C

Chris

Using css how do I get a layer to stack on top of the rest of the
body's content so the web page user can't interact with any other
elements/links on the page but that layer?

*****************************************************************
My web page

I can't click on any links while the layer is active

|----------------------------------------|
| Layer |
|----------------------------------------|

******************************************************************

Cheers,

Chris
 
K

kailash nadh

Using css how do I get a layer to stack on top of the rest of the
body's content so the web page user can't interact with any other
elements/links on the page but that layer?

*****************************************************************
My web page

I can't click on any links while the layer is active

|----------------------------------------|
| Layer |
|----------------------------------------|

******************************************************************

Cheers,

Chris

A position:absolute layer on top of all other layers (right after the
<body>), stretched to the maximum width and height should cover
everything up.
http://www.w3schools.com/css/pr_class_position.asp

Kailash Nadh | http://kailashnadh.name
 
B

Beauregard T. Shagnasty

Chris said:
Using css how do I get a layer to stack on top of the rest of the
body's content so the web page user can't interact with any other
elements/links on the page but that layer?

Would you care to explain the reason for wanting that, please?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top