I have a div that uses a border-image. The border width is 33px but the image doesn't fill the total width and has transparency. I want to have a background color that would fill exactly the inside of my border.
Here is the code I came with: http://jsfiddle.net/kvo8zyr7/1/
.content {
width: 500px;
height: 500px;
border: 33px solid;
border-image: image-url("interface/global/popup_border.png") 33 stretch;
margin: 0 auto;}
.sub-content {
position: relative;
left: -33px;
top: -33px;
width: 500px;
height: 500px;
border-left: 15px solid rgba(0,0,0,0);
border-top: 14px solid rgba(0,0,0,0);
border-right: 15px solid rgba(0,0,0,0);
border-bottom: 14px solid rgba(0,0,0,0);
background-color: #e4e2d7;
background-clip: padding-box;
z-index: -1;}
The problem is that all elements I have in my sub-content div are unclickable because the layer is behind...
Any ideas to whether:
- Make the elements clickable
- Have the same visual result with a different solution than mine that wouldn't make the elements unclickable?
Thanks in advance for your help.