Remove part of the background / make it transparent

I am making a menu that follows down the page and has 85% transparency. As it moves down the page or an item is clicked, an arrow will appear under the name of the current DIV.
I would like this arrow to be transparent, so the user can read what is behind it. If I make this image and make it transparent, it just shows what is lower (menu, obviously).
So my question is: how can I make this part transparent?
Here is my current code:
HTML:

<div class="menu">
    <ul class="navigation">
       <li><a href="#home">Home</a></li>
       <li><a href="#aboutme">About Me</a></li>
       <li><a href="#portfolio">Portfolio</a></li>
       <li><a href="#services">Services</a></li>
       <li><a href="#contact">Contact</a></li>
    </ul>
</div>

CSS

    .menu {
    position: fixed;
    width: 100%;
    height: 60px;
    background-image: url('images/menubg.png');

}

ul.navigation {
    list-style: none;
    text-align: center;
    font-family: 'Allerta', serif;
    text-transform: uppercase;
    font-size: 22px;
    margin: 0px;
    padding-top: 19px;
}

ul.navigation li {
    display: inline;    
}

ul.navigation a {
    color: #dcdcdc;
    margin-right: 30px;
    margin-left: 30px;
    text-decoration: none;
    padding-bottom: 35px;
}

ul.navigation a:hover {
    background-image: url('images/hover2.png');
    background-repeat: no-repeat;
    background-position: center;
}
+5
source share
2 answers

, - , , CSS -.

#arrow {
 -khtml-opacity:.50; 
 -moz-opacity:.50; 
 -ms-filter:"alpha(opacity=50)";
  filter:alpha(opacity=50);
  filter: progid:DXImageTransform.Microsoft.Alpha(opacity=0.5);
  opacity:.50; 
}
+1

, ?

CSS opacity, :

#transparent {
    background-image: url('images/hover2.png');

    opacity: 0.5;
    filter: alpha(opacity=50);
}

JSFiddle

W3Schools

+1

All Articles