Wrox Programmer Forums

Need to download code?

View our list of code downloads.

| FAQ | Members List | 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 software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old July 30th, 2004, 10: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, 11:44 AM
Imar's Avatar
Wrox Author
Points: 70,322, Level: 100
Points: 70,322, Level: 100 Points: 70,322, Level: 100 Points: 70,322, Level: 100
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 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, 06:48 AM
Friend of Wrox
 
Join Date: Oct 2003
Location: colombo, WP, Sri Lanka.
Posts: 481
Thanks: 0
Thanked 3 Times in 3 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 Search this Thread
Search this Thread:

Advanced Search
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 10:08 AM
Hover color of dropdown items toshi ASP.NET 1.0 and 1.1 Basics 0 May 3rd, 2006 04:23 AM
a:hover problems Stevie CSS Cascading Style Sheets 4 May 8th, 2005 04:30 PM
difference between style.visibility and style.disp Mimi Javascript How-To 6 September 17th, 2003 11:50 PM



All times are GMT -4. The time now is 03:51 AM.


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