Reply
CSS B Class Hover Command
Old 04-02-2004, 02:37 PM CSS B Class Hover Command
Average Talker

Posts: 25
Hello,

I am not schooled in CSS, just fooling around with it on a website. I cannot seem to get the b class links to have an underline effect while hovering as opposed to just a static underline. Here is my code, I would appreciate any help. Thanks in advance!

<style type="text/css">
<!--
A:link { text-decoration: none; color:#FFFFFF }
A:visited { text-decoration: none; color:#FFFFFF }
A:active { text-decoration: none; color:#993300 }
A:hover { text-decoration: underline; color:#FFFFFF }
b.first { text-decoration: none; color: #000000 }
-->
</style>
fisher318 is offline
Reply With Quote
View Public Profile
 
When You Register, These Ads Go Away!
     
Old 04-02-2004, 06:07 PM
ACJavascript's Avatar
Humble Mod

Posts: 548
Location: CT, USA
If the class name was " b " then do this:

a.b:hover {text-decoration:underline}

if the class name was "first" then do this:

a.first:hover {text-decoration:underline}

PHP Code:
--
<
a href="" class="first">First</a>
<
BR>
<
a href="" class="b">b</a>
-- 
__________________
CYTech-services.com - 100 Satisfied Customers - Custom Programming and Web Development
ACJavascript is offline
Reply With Quote
View Public Profile Visit ACJavascript's homepage!
 
Reply     « Reply to CSS B Class Hover Command
 

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML

 


Page generated in 0.11006 seconds with 13 queries