Switch to full style
HTML,DHTML,Javascript,XML,CSS
Post a reply

Border around JPG img

Sun Oct 19, 2008 4:49 pm

I would like to put some sort of border around the JPG image.



Re: Border around JPG img

Sun Oct 19, 2008 4:52 pm

You can do it in an image editing tool, or through CSS:

img {border: 1px solid #000000;}

The first bit there (1px) is the width of the border, and can be just about
anything, but make sure that you include the unit of measurement.
The second is the style of the border. This page:
Code:
http://www.w3schools.com/css/tryit.asp?filename=trycss_border-style shows the

styles that you can use.
The third is the color of the border. If you'd like some assistance in picking a
good border color, I'd suggest that you check out Adobe Kuler at
Code:
http://kuler.adobe.com.


Post a reply
  Related Posts  to : Border around JPG img
 Add solid Border to div     -  
 Add dotted Border to div     -  
 set the size of border in pixels     -  
 Set border bottom color     -  
 Add dashed border to text div     -  
 separate border collapse example     -  
 Add border around ordered list elements     -  
 change border style to solid at div tag     -  
 Change the border style on mouse over     -  
 Table Border Colors for PHPBB3     -