I have the following HTML and CSS where the position of the #header id
has to be mandatory set to absolute
:
<div class="main">
<a href="www.website.com">
<div id="header" class="other">
</div>
#header{
padding-left: 250px;
position:absolute;
}
This code sets the header
div over the link tag and it becomes (the link) unavailable for selecting.
My question is what CSS do I have to apply to .main > a
so that it does not get below the header
div?
I tried the below but it does not work so any other ideas are welcomed:
.main > a {
z-index:99999;
}