web design

warning: Creating default object from empty value in /home/dgeek/designgeek.com/modules/taxonomy/taxonomy.pages.inc on line 33.

Web Design: Image Borders

July 21, 2003 - 1:00am ||| 1 Comment | Add new

Beginning/occasional web designers may have noticed that there's no easy way to add a custom-colored border around a .jpeg or .gif in their web page. Yes, you can set a border width attribute in the <img src> tag, for example:
<img src="logo.gif" border="5">
… but the color of the border is the default color of your body text, usually black. If the image is a link, the border changes color to match your link color. [Note: For brevity's sake I'm not including the image's alt, height or width attributes in these code examples, but they should of course be there.]

more >