What I want to do
I want to create a menu and for each link I want to apply a hover effect. When the user hovers the mouse will show strokes on the sides of the link.
Image Example
Follow here as I'm trying to do. When I hover over "home" I want these 2 lines to appear next. I tried to use <hr>
or <span>
and did not succeed.
What I've tried
<li>
<a href="" title="Home"><p><span>__</span>home</p></a>
</li>
I tried to put the span tag next to the p, but the paragraph took up 100 of the width, so it was on another line, so I tried to put that span next to the paragraph, so it looks good, but looks good on the "floor" .
Update
<li>
<a href="" title="Home">
<div class="traco"></div>
<div class="textoMenu">home</div>
<div class="traco"></div>
</li>
<li>
<a href="" title="Empresa">
<div class="traco"></div>
<div class="textoMenu">a empresa</div>
<div class="traco"></div>
</li>
CSS
.traco {
width: 20px;
height: 1px;
background-color: transparent;
float: left;
margin-top: 8px;
}
.textoMenu{
.colorFonte(@corTodasLetras);
text-align: center;
font-family: Georgia;
font-size: 14px;
.marginReduzida(0,10px);
float: left;
}
Now I just need to find a way to center these links.