I have a problem regarding link for images in CSS. If i have image in HTML
with border=2 and i want to apply different color to border of image which
reperesent whether its link, active or visited. Now when using CSS i write
following code it doesn't affect to image it affect only to normal links.
a:link
{
color: #FFFF00;
}
a:visited
{
color: #D9A771;
}
a:active
{
color: #FFFFFF;
}
Brijesh
Remove the 'border=2' from inside <img> and give this a try:
a:link img { border : 2px solid #ffff00;}
a:visited img { border : 2px solid #d9a771;}
a:active img { border: 2px solid #ffffff;}
--
Samuli Lintula
samuli....@utu.fi University of Turku
http://users.utu.fi/saklint Department of Biochemistry
----------------------------------------
1. Varavaltuutettu (vihr.) http://www.geocities.com/slintula/
Kulta ei ole arvokasta. Se vain maksaa paljon.