I have implemented an image slider as shown below:
<div class="bx-wrapper" style="width:516px; position:relative;">
<div class="bx-window" style="position:relative; overflow:hidden; width:516px;">
<ul style="width: 999999px; position: relative; left: -516px;">
<li style="width: 129px; float: left; list-style: none outside none; height:68px; margin-top:3px">
<a href="javascript:void(0)" id="p_5">
<img src="question_pliki/5.png" alt="">
</a>
</li>
<!--... many more <li> elements-->
</ul>
</div>
</div>
My goal is to add a border to the active image, for which I used this JQuery script:
$('.bx-window ul li').click(function(){
$(this).parent().find('li').css('border','none');
$(this).css('border','5px solid #f28458');
});
However, the border appears outside the image and disrupts my layout.
Is there a way to apply the border inside the image instead?