Implementing the use of :before
to insert an icon font into a div for a CSS3 hover state. I am looking to incorporate a div within the <a>
tag in order for both elements to function as links:
<a href="#set-4" class="column product hi-icon product-icon"><div>Product</div></a>
CSS:
.product-icon:before {
content: "\e601";
margin-top: "-4px";
}
However, I am struggling to find a way to display the title div
.
I have created a CodePen demo to showcase the issue. Can anyone offer guidance on how to solve this problem? Much appreciated!