Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Link in CSS

1 view
Skip to first unread message

Brijesh Vairagiwala

unread,
Dec 5, 2000, 3:00:00 AM12/5/00
to
Hi,

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

Samuli Lintula

unread,
Dec 6, 2000, 3:00:00 AM12/6/00
to

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.

0 new messages