How do I draw a border over my section while mouse is over any navigation element <a>
etc ?
I were trying to find solution but none of + . ~ work for me.
<div class="wrapper">
<header>
<nav>
<ul>
<li><a href="#">BAC</a></li>
<li><a href="#">CAD</a></li>
<li><a href="#">EEE</a></li>
<li class="image">
<a href="index.html"><img src="img/logo.png"></a>
</li>
</ul>
</nav>
</header>
<section class="content">
CONTENT
</section>
</div>
Could someone share some css code to do this? That would be awesome !
Solution : Use jQuery
$(document).ready(function(){
$(function() {
$('li').hover(function() {
$('.content').css('outline', 'solid 5px');
}, function() {
$('.content').css('outline', '');
});
});
});
Thats my script, but you can find alternative @below