Page 1 of 2 12 LastLast
Results 1 to 10 of 12
  1. #1
    Join Date
    Nov 2006
    Posts
    81
    Plugin Contributions
    0

    help question CSS Catagories Hover?

    I'm trying to create a hover color on the catagories list.

    This is what I thought I could do, but I was wrong.
    Could someone guide me with this? Not sure if I need to change something else to make it work in the style sheet.

    Thank you.

    /* categories box parent and child categories */
    A.category-top, A.category-top:visited { color: red; font-size: 9pt; font-weight: bold; text-decoration: none }
    A.category-top, A.category-top:hover { color: #00008b; font-size: 9pt; font-weight: bold; text-decoration: none }
    A.category-subs, A.category-products, A.category-subs:visited, A.category-products:visited { color: #ff0000; font-weight: bold; text-decoration: none; }

  2. #2
    Join Date
    Aug 2004
    Location
    New York City
    Posts
    7,174
    Plugin Contributions
    0

    Default Re: CSS Catagories Hover?

    I'm not 100% sure, but I think you need to make the following changes (the ones in red).

    Code:
    /* categories box parent and child categories */
    A.category-top a:visited, A.category-top a:visited{ color: red; font-size: 9pt; font-weight: bold; text-decoration: none }
    A.category-top a:hover, A.category-top a:hover{ color: #00008b; font-size: 9pt; font-weight: bold; text-decoration: none }
    A.category-subs a:visited, A.category-products a:visited,  A.category-subs a:visited, A.category-products a:visited { color: #ff0000; font-weight: bold; text-decoration: none; }
    Mary Ellen
    I came; I saw; I Zenned
    Taking over the world... one website at a time
    Make sure brain is engaged before putting mouth in gear... or fingers to keyboard.

    Holzheimer
    Fan Odyssey

  3. #3
    Join Date
    Nov 2006
    Posts
    81
    Plugin Contributions
    0

    Default Re: CSS Catagories Hover?

    Thank you, that worked great!

  4. #4
    Join Date
    Aug 2004
    Location
    New York City
    Posts
    7,174
    Plugin Contributions
    0

    Default Re: CSS Catagories Hover?

    I got it right! I wasn't sure that was the answer, but looking at the other css, it seemed like the way it needed to be done.

    Glad it got you going.
    Mary Ellen
    I came; I saw; I Zenned
    Taking over the world... one website at a time
    Make sure brain is engaged before putting mouth in gear... or fingers to keyboard.

    Holzheimer
    Fan Odyssey

  5. #5
    Join Date
    Nov 2006
    Posts
    81
    Plugin Contributions
    0

    Default Re: CSS Catagories Hover?

    Once I change the code, the hover works but I lost my size of the text and bold.

    Hmmm. not sure how that happened.

    Would you know why I would loose that?

    Also, I notice that my Code color changed. It was blue, now it is Red and Green.
    I use Golive. I can change it in the source code view of the style sheet but it does not show up in the list. (CSS Definitions)

    Any ideas?

    Thanks again for you help!

  6. #6
    Join Date
    Aug 2004
    Location
    New York City
    Posts
    7,174
    Plugin Contributions
    0

    Default Re: CSS Catagories Hover?

    Try adding this replacing the color and font size/weight as necessary:

    Code:
    A.category-top a:link, A.category-top a:link{ color: red; font-size: 9pt; font-weight: bold; text-decoration: none }
    A.category-subs a:link, A.category-products a:link,  A.category-subs a:link, A.category-products a:link { color: #ff0000; font-weight: bold; text-decoration: none; }
    You can also split them up if you want/need to get the desired effect.

    Also, on the definition that begins "A.category-subs", you have a font weight, but no font size.
    Mary Ellen
    I came; I saw; I Zenned
    Taking over the world... one website at a time
    Make sure brain is engaged before putting mouth in gear... or fingers to keyboard.

    Holzheimer
    Fan Odyssey

  7. #7
    Join Date
    Nov 2006
    Posts
    81
    Plugin Contributions
    0

    Default Re: CSS Catagories Hover?

    OK.
    I've lost my mind now.
    the catagories weight is back, the size is back, but the hover doesnt work.
    Also, the links under the catagories are wacked out. Hover has the large text and the regular link has the small nonbold text.

    Here is a link: http://www.spittinimagesonline.com/storefront/

    here is what I have nowin the CSS:

    Code:
    /* categories box parent and child categories */
    A.category-top, a:visited, A.category-top:a:visited { color: red; font-size: 9pt; font-weight: bold; text-decoration: none   }
    
    A.category-top, a:hover, A.category-top:a:hover { color: #00008b; font-size: 9pt; font-weight: bold; text-decoration: none   }
    
    A.category-subs, a:visited, A.category-products, a:visited, A.category-subs:visited, a:visited, A.category-products:a:visited { color: #09f; font-weight: bold; text-decoration: none; }

  8. #8
    Join Date
    Aug 2004
    Location
    New York City
    Posts
    7,174
    Plugin Contributions
    0

    Default Re: CSS Catagories Hover?

    It looks ok to me. What am I missing? Hover goes from blue to red in the sideboxes and the products.
    Mary Ellen
    I came; I saw; I Zenned
    Taking over the world... one website at a time
    Make sure brain is engaged before putting mouth in gear... or fingers to keyboard.

    Holzheimer
    Fan Odyssey

  9. #9
    Join Date
    Nov 2006
    Posts
    81
    Plugin Contributions
    0

    Default Re: CSS Catagories Hover?

    Yeah you are right.

    It was my Browser, Safari.
    Even clearing cache and refreshing.

    Works in Firefox and Netscape.

    Thanks for all your help!!

  10. #10
    Join Date
    Aug 2004
    Location
    New York City
    Posts
    7,174
    Plugin Contributions
    0

    Have a Drink Re: CSS Catagories Hover?

    Excellent! I'm glad you've got things the way you want them.
    Mary Ellen
    I came; I saw; I Zenned
    Taking over the world... one website at a time
    Make sure brain is engaged before putting mouth in gear... or fingers to keyboard.

    Holzheimer
    Fan Odyssey

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. v150 Css Dropdown Menu hover problem
    By soso838 in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 17 Jun 2012, 06:45 AM
  2. EZ Pages - CSS un li div selected/hover
    By Marv in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 21 Dec 2011, 09:19 AM
  3. CSS Hover Help Reqd
    By Maccon in forum Templates, Stylesheets, Page Layout
    Replies: 13
    Last Post: 13 Oct 2008, 04:18 PM
  4. CSS Hover Buttons
    By hlycom99 in forum Templates, Stylesheets, Page Layout
    Replies: 6
    Last Post: 25 Jul 2007, 02:00 AM
  5. CSS Question re: configuring a:hover
    By bgroup99 in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 6 Mar 2007, 04:27 AM

Posting Permissions

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