hi all
i am using css to style my links. what i need is that only the link that is clicked should change colour separate color and rest other links should be of same one colour.
i using IE 7 and firefox 3. This css is not working.
vineetCode:<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <title>Untitled Document</title> <style> a:link{ background-color:#000000; font-family:Arial, Helvetica, sans-serif; font-size:12px; color:#ffffff; height:60px; padding:4px; margin:10px; display:block; width:20px; } a:visited{ background-color:#ff0000; font-family:Arial, Helvetica, sans-serif; font-size:12px; color:#ffffff; height:60px; padding:4px; margin:10px; display:block; width:20px; } a:active{ background-color:#000000; font-family:Arial, Helvetica, sans-serif; font-size:12px; color:#ffffff; height:60px; padding:4px; margin:10px; display:block; width:20px; } a:hover{ background-color:#000000; font-family:Arial, Helvetica, sans-serif; font-size:12px; color:#ffffff; height:60px; padding:4px; margin:10px; display:block; width:20px; } </style> </head> <body> <a href="#">1</a> <a href="#">2</a> <a href="#">3</a> <a href="#">4</a> </body> </html>



Reply With Quote


Bookmarks