Results 1 to 2 of 2

Thread: overridding CSS values

  1. #1
    Join Date
    Oct 2006
    Posts
    33
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default overridding CSS values

    I want animated underline in my text link but not in image links. So i did something like below. But this does not work. Whats the alternative.

    HTML Code:
    <html>
    <head>
    <title>CSS Test</title>
    <style type="text/css">
    #content a:hover{
    text-decoration:none;
    padding-bottom:2px;
    background:url(flash2.gif) bottom left repeat-x; /* Delete this line to remove the flashing underline for regular links */
    }
    
    #content img:hover{
    text-decoration:none;
    padding-bottom:2px;
    background:none !important;
    }
    </style>
    </head>
    	<body>
    		<div id="content">
    			<a href="index.html">Hi I m Testing</a>
    			<br /><a href="index2.html"><img src="cat.jpg" /></a>	
    		</div>
    	</body>
    </html>
    please help me

  2. #2
    Join Date
    Dec 2004
    Location
    UK
    Posts
    2,358
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    You already asked this question and I answered it.

    Mike

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •