I have an anchor link on a menu with an icon above it. I need it so that when someone clicks on either the menu item, or the pseudo element above it holding the icon, the link works.
I have a codepen here: http://codepen.io/emilychews/pen/wJrqaR
The red square is the pseudo element that will hold the icon.
The code is:
CSS
.menu {
position: relative;
left: 50px;
top: 50px;
height: 30px;
width: 100px;
background: blue;
line-height: 30px;
text-align: center;
}
.menu:before {
content:'';
position: absolute;
width: 100%;
height: 100%;
background: red;
bottom: 40px;
right: 0px;
}
.menu-item1 a { color: white; text-decoration: none; }
HTML
<div class="menu menu-item1"><a href="//google.com">Menu Item</a></div>
Any help would be awesome.
Emily.
.menu a:beforecodepen.io/anon/pen/RpLZMe