I have created four div upon each other (absolute positioning) so that I was able to rotate them around the same centre. The problem is, I have a link within each div, that are consequently not working anymore (impossible to click). I managed to make them work in Firefox with "pointer-events: none;" on the div and "pointer-events: auto;" on the link. Unfortunately this only works in Firefox. So I would like to know if someone had another solution (possibly without JavaScript) to able the links in Safari and Chrome too (and possibly IE).
HTML:
<div id="one"><a href="#">Link one</a></div>
<div id="two"><a href="#">Link two</a></div>
<div id="three"><a href="#">Link three</a></div>
<div id="four"><a href="#">Link four</a></div>
CSS:
#one, #two, #three, #four {
height: 100px;
width: 100px;
position: absolute;
}
#one {
transform: rotate(90deg);
-ms-transform: rotate(90deg);
-webkit-transform: rotate(90deg);
}
#two {
transform: rotate(180deg);
-ms-transform: rotate(180deg);
-webkit-transform: rotate(180deg);
}
#three {
transform: rotate(-90deg);
-ms-transform: rotate(-90deg);
-webkit-transform: rotate(-90deg);
}
Here is the jsFiddle: http://jsfiddle.net/jf6A5/.
Thank you in advance for your help.