Click here to Skip to main content
15,891,656 members
Please Sign up or sign in to vote.
3.86/5 (3 votes)
Dear CSS Experts,

Below is my CSS code, I want to make a hole, I mean transparent disable hole and I want to place it anywhere I want it like. Please advise me.

C#
.pageNew
{
position: fixed;
top: 0;
left: 0;
background-color: black;
z-index: 99;
opacity: 0.8;
filter: alpha(opacity=80);
-moz-opacity: 0.8;
min-height: 100%;
width: 100%;
}
Posted
Updated 30-Jan-14 3:52am
v2

Refer - Intersection in CSS3[^].

It might help you to get started.
 
Share this answer
 
Comments
abdulsafran 30-Jan-14 10:31am    
Thanks for you bro, this is not working properly, I just want to make a hole in my code. Pleas help me.
If you see the demo provided in that answer, you can see that it is working.
If you want to do that, analyze what he has used and how did he do that exactly.
Hi,

Here I try to make a hole in css.

XML
<div class="hole">

</div>

you can change the background color as well, so you get the idea about solution.
CSS
body{background:green;}
.hole{width:100px; height:100px; border-radius:60px; border:8px solid red;}

click below link for live demo.
http://codepen.io/ashishbhatt/pen/vjxkm[^]
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900