Thread: CSS question

Results 1 to 4 of 4
  1. #1
    Join Date
    Jun 2008
    Posts
    255
    Plugin Contributions
    0

    Default CSS question

    Hi,

    Hoping someone would lend some advise on a style line I'm trying to accomplish on NavEZpages.

    I want the #navEZPages a:link, hover, visited and everything else to be underlined. However I would like it to only affect the #navEZPages. I have these on my stylesheet right now:

    #navEZPagesTOC ul li a {
    color: #2b2b2b;
    text-decoration: underline;
    }

    #navEZPagesTOC ul li a:hover, #navMain ul li a:hover, #navSupp ul li a:hover, #navCatTabs ul li a:hover {
    color: #2b2b2b;
    text-decoration: underline;
    }

    #navEZPagesTOC ul li a:visited, #navMain ul li a:visited, #navSupp ul li a:visited, #navCatTabs ul li a:visited {
    color: #2b2b2b;
    text-decoration: underline;
    }

    #navEZPagesTOC ul li a:link, #navMain ul li a:link, #navSupp ul li a:link, #navCatTabs ul li a:link {
    color: #2b2b2b;
    text-decoration: underline;
    }


    a:link {
    color: #2b2b2b;
    text-decoration: none;
    }

    a:visited {
    color: #2b2b2b;
    text-decoration: none;
    font-weight: bold;
    }

    a:hover {
    color: #2b2b2b;
    text-decoration: underline;
    }

    a:active {
    color: #2b2b2b;
    }


    Now, my question is, since the controls are on the #navEZPages, how come the a:hover, visited, active etc are still controlling the navEZPages style? Is there something wrong with my coding?

    Any advise towards the right coding would be appreciated. Thanks!

  2. #2
    Join Date
    Nov 2005
    Location
    Colorado Springs, CO USA
    Posts
    7,033
    Plugin Contributions
    31

    Default Re: CSS question

    Quote Originally Posted by sunflowertami View Post
    Hi,

    Hoping someone would lend some advise on a style line I'm trying to accomplish on NavEZpages.

    I want the #navEZPages a:link, hover, visited and everything else to be underlined. However I would like it to only affect the #navEZPages. I have these on my stylesheet right now:

    #navEZPagesTOC ul li a {
    color: #2b2b2b;
    text-decoration: underline;
    }

    #navEZPagesTOC ul li a:hover, #navMain ul li a:hover, #navSupp ul li a:hover, #navCatTabs ul li a:hover {
    color: #2b2b2b;
    text-decoration: underline;
    }

    #navEZPagesTOC ul li a:visited, #navMain ul li a:visited, #navSupp ul li a:visited, #navCatTabs ul li a:visited {
    color: #2b2b2b;
    text-decoration: underline;
    }

    #navEZPagesTOC ul li a:link, #navMain ul li a:link, #navSupp ul li a:link, #navCatTabs ul li a:link {
    color: #2b2b2b;
    text-decoration: underline;
    }


    a:link {
    color: #2b2b2b;
    text-decoration: none;
    }

    a:visited {
    color: #2b2b2b;
    text-decoration: none;
    font-weight: bold;
    }

    a:hover {
    color: #2b2b2b;
    text-decoration: underline;
    }

    a:active {
    color: #2b2b2b;
    }


    Now, my question is, since the controls are on the #navEZPages, how come the a:hover, visited, active etc are still controlling the navEZPages style? Is there something wrong with my coding?

    Any advise towards the right coding would be appreciated. Thanks!
    You need to style the following id in your stylesheet:

    #navEZPagesTop

  3. #3
    Join Date
    Jun 2008
    Posts
    255
    Plugin Contributions
    0

    Default Re: CSS question

    That did it!! Thanks so much!

    Quote Originally Posted by clydejones View Post
    You need to style the following id in your stylesheet:

    #navEZPagesTop

  4. #4
    Join Date
    Nov 2005
    Location
    Colorado Springs, CO USA
    Posts
    7,033
    Plugin Contributions
    31

    Default Re: CSS question

    Glad to help

 

 

Similar Threads

  1. v139h CSS Question
    By gazag in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 27 Feb 2012, 03:02 PM
  2. CSS Question
    By Lopton in forum Templates, Stylesheets, Page Layout
    Replies: 5
    Last Post: 21 Jul 2008, 04:58 AM
  3. I'm not sure if this is a CSS question or an admin panel question....
    By kinget in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 24 Mar 2007, 08:29 PM

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