Results 1 to 8 of 8

Hybrid View

  1. #1
    Join Date
    Feb 2011
    Posts
    5
    Plugin Contributions
    0

    Default stylesheet issue

    I am working at learning and understanding style sheets. Below is a snippet of code from the styesheet included in the basic zencart deployment. My problem is I want to have the links at the top of the page behave differently then the links in the right boxes and left boxes. I am thinking in the code below the hover action is being set for 4 distinct areas on the page. How do I separate them so I can assign different properties/actions to links in different areas of the pages?

    a:hover, #navEZPagesTOC ul li a:hover, #navMain ul li a:hover, #navSupp ul li a:hover, #navCatTabs ul li a:hover {
    color: #FFFFFF;
    font-family:Arial;
    font-size:12px;
    text-decoration: none;
    font-weight: bold;
    }

  2. #2
    Join Date
    Dec 2006
    Location
    Seligman, MO U.S.A.
    Posts
    2,101
    Plugin Contributions
    5

    Default Re: stylesheet issue

    What's the url for your site?
    Which links do you want changed, and to what color? hover color?
    Teach them to shop and they will shop today;
    Teach them to Zen and they will OWN a shop tomorrow!

  3. #3
    Join Date
    Feb 2011
    Posts
    5
    Plugin Contributions
    0

    Default Re: stylesheet issue

    No offense but I need to learn how to do this myself. Am i correct in thinking that the code is covering 4 distinct areas and if so how do I separate them?

  4. #4
    Join Date
    Feb 2011
    Posts
    5
    Plugin Contributions
    0

    Default Re: stylesheet issue

    I can't say for sure what the final color will be i'm just playing around with the entire thing at the moment

  5. #5
    Join Date
    Feb 2011
    Posts
    5
    Plugin Contributions
    0

    Default Re: stylesheet issue

    thank you. I was thinking that was how it was done but I thought it best to start asking questions. Sometimes I get to messing around too much and then forget where I am at in this process.

  6. #6
    Join Date
    Nov 2010
    Posts
    114
    Plugin Contributions
    0

    Default Re: stylesheet issue

    Just some advice from my experience being new at this too.

    I started copying my whole style sheet into a Word document any day I planned extensive changes. This way I had an easy reference point where things started. Next time I just copied over the last version. Periodically archiving a copy.

    I try to make this a habit now, learning from my mistakes.

    Of course always do back ups.

  7. #7
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: stylesheet issue

    Generically, separate out the selectors you want to style differently:
    Code:
    a:hover, #navEZPagesTOC ul li a:hover {
    color: #FFFFFF;
    font-family:Arial;
    font-size:12px;
    text-decoration: none;
    font-weight: bold;
    } 
    #navMain ul li a:hover, #navCatTabs ul li a:hover {
    color: #ffeedd;
    font-size:10px;
    } 
    #navSupp ul li a:hover {
    color: #aaaaaa;
    font-weight: normal;
    }
    You only need the properties that you want different in the second/third rules.

 

 

Similar Threads

  1. v139h Stylesheet and Form Issue
    By sle39lvr in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 3 Dec 2012, 08:42 PM
  2. Help Please, small stylesheet issue
    By CharInLasVegas in forum Templates, Stylesheets, Page Layout
    Replies: 6
    Last Post: 21 Oct 2009, 06:31 AM
  3. ez-pages tabs stylesheet issue with IE 7
    By longstockings in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 11 Mar 2009, 07:40 PM
  4. stylesheet issue with IE?
    By BeerCan in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 21 Jun 2006, 10:51 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