How To Add Outer Borders to Images

Posted by Lasantha Bandara on November 26th, 2009 File Under : css, image0 Comment

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.

Outer Borders to Images

<style type='text/css'>

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


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

4.Now add your images as below.

<div id="outer-borders">

<a href="#"><img src="" alt="#" /></a>

<a href="#"><img src="" alt="#" /></a>

<a href="#"><img src="" alt="#" /></a>


You are done.


File Under : css, image

Leave a Reply

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.