x
dustball
MSIE and image border colors for links

Here is the scenario:  You have an image as a link.  You want the image to have a border, but you want the border color to inherit the page's already defined style for links.  Firefox does this automatically.  If you have:

<a href="http://www.mindsay.com/news.html">
  <img border="1" src="news.gif">
</a>


Firefox will pretend the image is text more or less.  It will take the color of your A and apply it to the border color.  This even works for :hover as well.  Internet Explorer, however, will use the default blue for the border color.  Sure, you COULD override the color of the image border, but what if you don't know what color the page's links are?  You can solve the problem with CSS expressions:

<a href="http://www.mindsay.com/news.html">
  <img border="1" src="news.gif" style="border-color:

   expression(this.parentElement.currentStyle.color)">
</a>

 
Calendar

August 2008
12
3456789
10111213141516
17181920212223
24252627282930
31

June 2008
1234567
891011121314
15161718192021
22232425262728
2930

November 2007
123
45678910
11121314151617
18192021222324
252627282930


Older

Recent Visitors

August 20th
underground1986

August 19th
google
ozzie777

August 18th
hauntedwhisper
iliketiedye
google
Smurfy

August 17th
google

August 16th
google

August 15th
google
valbah

August 14th
askjesse