How To Add Inner Borders to Images

inner borders to images


1.Login to your blogger dashboard--> layout- -> Edit HTML

2.Scroll down to where you see </head> tag .

3.Copy below code and paste it just before the </head> tag.


<style type='text/css'>

#inner-borders a img, #inner-borders a { border: none; overflow: hidden; float: left; }
#inner-borders a:hover { border: 3px solid #0000ff; }
#inner-borders a:hover img { margin: -3px; }

</style>


Note:You can change border color,border size,margin,... But both border size and margin must have a same numerical value.

4.Now add your images as below.

<div id="inner-borders">

<a href="#"><img src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhocfZoydfyOgphFlHXij3dJQ-XghCGJBzyKIYXX9Uw0Hq3zN6hWH4t7Q1B6ini6qSVZijrhIfyreo-NAkmhOPIpjgenLfOl5IrufVXpxf-w0H7R5xx44mtnhOHqcrkYKMMItMlFZg-xLYB/+1+small.jpg" alt="#" /></a>

<a href="#"><img src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgae1j1fS8GkC95p5UcoLuFTolsrpe_uxEZJXtyKmsTspgJtSWsdvxhGVOmUxiuZlOlX1dQN6B57R1JF1I6BbXqr6T3G3H0Hh9mKYVTOulrvfK_3oVhjtuzIkuIwoEsxwI2JsygiY3iI0q3/+2+small.jpg" alt="#" /></a>

<a href="#"><img src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg3nVdV93BPmcCZwxEtFdflwpRJkqP27KNO4NDWSdZeuhvvBLQDgYlgngIQkajLXzVz-8urB9SJgT_yUOV6k92VfvvJL9tJqPc_zMq_iu6QeE8WCHC6yD-g61O043kdvHt-Hgl62Aaokhw-/+3+small.jpg" alt="#" /></a>

</div>

Now click Save

No comments:

Post a Comment