Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Dreamweaver (all versions) section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developersí questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old July 30th, 2004, 11:11 AM
Authorized User
 
Join Date: Jul 2004
Location: , , .
Posts: 40
Thanks: 0
Thanked 0 Times in 0 Posts
Default a: hover - style...

For some reason the a:hover tag i created in a style in dreamweaver is not working on links that are already visited...any idea why? or how to fix that....
I am trying to bold the text of my links when the mouse is over them...it works with the a:hover option in css but then stops working when the link is visited - is there another way of accomplishing this...

Thanks Adina


Reply With Quote
  #2 (permalink)  
Old July 30th, 2004, 12:44 PM
Imar's Avatar
Wrox Author
Points: 67,779, Level: 100
Points: 67,779, Level: 100 Points: 67,779, Level: 100 Points: 67,779, Level: 100
Activity: 100%
Activity: 100% Activity: 100% Activity: 100%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 16,291
Thanks: 66
Thanked 1,440 Times in 1,420 Posts
Default

Hi there,

How does your code look like? In what order did you define the selectors?

If you override the font-weight property for the :visited selector *after* you define the hover property, the :visited will win, and the font won't turn bold. So this will work:
Code:
a:visited
{
    font-weight: normal;
}
a:hover
{
    font-weight: bold;
}
but this won't:
Code:
a:hover
{
    font-weight: bold;
}
a:visited
{
    font-weight: normal;
}
HtH,

Imar
---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.
Reply With Quote
  #3 (permalink)  
Old August 3rd, 2004, 07:48 AM
Friend of Wrox
 
Join Date: Oct 2003
Location: colombo, WP, Sri Lanka.
Posts: 482
Thanks: 0
Thanked 2 Times in 2 Posts
Send a message via MSN to surendran Send a message via Yahoo to surendran
Default

hi elladi,
see a full code for a style sheet class

.companyprofile
{
    FONT-SIZE: 11px;
    COLOR: black;
    FONT-FAMILY: Verdana;
    TEXT-DECORATION: none
}
.companyprofile A:active
{
    FONT-SIZE: 11px;
    COLOR: black;
    FONT-FAMILY: Verdana;
    TEXT-DECORATION: none
}
.companyprofile A:link
{
    FONT-SIZE: 11px;
    COLOR: black;
    FONT-FAMILY: Verdana;
    TEXT-DECORATION: none
}
.companyprofile A:visited
{
    FONT-SIZE: 11px;
    COLOR: black;
    FONT-FAMILY: Verdana;
    TEXT-DECORATION: none
}
.companyprofile A:hover
{
    FONT-SIZE: 11px;
    COLOR: red;
    FONT-FAMILY: Verdana;
    TEXT-DECORATION: none
}

surendran
(Anything is Possible)
Reply With Quote
Reply


Thread Tools
Display Modes

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

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
get Front page's hover buttons.... insyirah Dreamweaver (all versions) 1 July 10th, 2006 11:08 AM
Hover color of dropdown items toshi ASP.NET 1.0 and 1.1 Basics 0 May 3rd, 2006 05:23 AM
a:hover problems Stevie CSS Cascading Style Sheets 4 May 8th, 2005 05:30 PM
difference between style.visibility and style.disp Mimi Javascript How-To 6 September 18th, 2003 12:50 AM



All times are GMT -4. The time now is 05:31 PM.


Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.