Search code examples
cssopacity

CSS opacity div, links not working inside that div


I have a footer with an opacity of 0.4 as you can see here...

.footer{
    margin: 0 auto;
    position: relative;
    width: 1101px;
    background-color:#888888;
    min-height:145px;
    opacity:0.44;
    filter:alpha(opacity=44);
}

and I have another div class inside the footer called footerNav...

.footerNav{
    padding-top:10px;
    margin: 0 auto;
    position: relative;
    width:1080px;
}

.footerNav ul {
    list-style-type: none;
    margin: 0;
    padding: 0 0 0 8px;
}

.footerNav li {
    float: left;
}

.footerNav ul a {
    color: #FFFFFF;
    display: block;
    padding: 0 30px 0 0;
    text-decoration: none;
    font-size:36px;
    text-transform:uppercase;
}

and with a list inside the div class

<div class="footerNav">
<ul>
<li><a href="index.php">Home</a></li>
<li><a href="about.php">About Us</a></li>
<li><a href="gallery.php">Gallery</a></li>
<li><a href="services.php">Services</a></li>
<li><a href="contact.php">Contact Us</a></li>
</ul>
</div><!--footerNav-->
</div><!--footer-->

My problem is the links are not clickable and the color of the links is suppose to white, how do I fix this?


Solution

  • Add an z-index to your footerNav

    .footerNav{     
        padding-top:10px;     
        margin: 0 auto;     
        position: relative;     
        width:1080px; 
        z-index:1000;
    }