Results 1 to 5 of 5
  1. #1
    Join Date
    Mar 2004
    Location
    Calgary, Alberta
    Posts
    290
    Plugin Contributions
    1

    Default SideBox Header colours

    I spent way to much time last night trying to make this work instead of sleeping.. when I should have posted a message here as I'm my problem would have been answered in 5 min.

    I want the sidebox headers (where there is a link - new products and shopping cart for example). to be:

    * Visited - White
    * Link - Yellow
    * Hover - Red

    alas I sorta had the "cart" working but the "new products" totally ignored the css, which totally puzzled me. Any thoughts? I'm sure this is a no brainer, if I new what I was doing wrong.

    HTML Code:
    /* QJS - added */
    h3.leftBoxHeading A:visited (color:white)
    h3.leftBoxHeading A:link (color:white)
    
    .leftBoxHeading a:active {
    	color: white;
    	text-decoration: none;
    	border-bottom: 1px solid #9a9a9a;
    	} 
    
    h3.leftBoxHeading a:hover {
    	color: red;
    	text-decoration: none;
    	border-bottom: 1px solid #ffffff;
    	} 
    
    /* QJS - added */
    h3.leftBoxHeading a:visited {
    	color: white;
    	text-decoration: none;
    	border-bottom: 1px solid #9a9a9a;
    	} 

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

    Default Re: SideBox Header colours

    Oops sorry, posted in wrong thread...

  3. #3
    Join Date
    Dec 2007
    Location
    Southern Maine
    Posts
    281
    Plugin Contributions
    0

    Default Re: SideBox Header colours

    quentinjs,
    In your CSS stylsheet you should see something that looks like this:
    Code:
    a:link, #navEZPagesTOC ul li a {
    	color: #3300FF;
    	text-decoration: none;
    	}
     
    a:visited {
    	color: #3300FF;
    	text-decoration: none;
    	}
    
    a:hover, #navEZPagesTOC ul li a:hover, #navMain ul li a:hover, #navSupp ul li a:hover, #navCatTabs ul li a:hover {
    	color: #FF0000;
    	}
    
    a:active {
    	color: #0000FF;
    	}
    I believe that should control the colors you mention. I could be wrong....I am still learning too
    If you want specific areas to have different colors for the links, you can simply remove that area from the above code, paste it below the code, and specify colors.
    If you have firefox, grab the Web Developers and Firebug addons. They will help in locating the exact code you need and the colors associated with the code.

    I am still learning how to use them, but they have saved me a ton of time.

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

    Default Re: SideBox Header colours

    The problem is that the link is an inline element inside the heading, so changing its background has no effect on the heading as a whole.
    Add this to your stylesheet_new.css:

    h3.leftBoxHeading a {display: block; background-color: #aabbcc;}

    and extend as usual for visited, hover and active (in that order).

  5. #5
    Join Date
    Mar 2004
    Location
    Calgary, Alberta
    Posts
    290
    Plugin Contributions
    1

    Default Re: SideBox Header colours

    So this is what I know...

    HTML Code:
    .leftBoxHeading  a ( color: white; )  /* DOESN'T WORK */
    .leftBoxHeading  a:visited { color: green; }  /* DOESN'T WORK */
    .leftBoxHeading  a:hover { color: red; } /* works*/ 
    .leftBoxHeading a:active { color: white; }  /* works */
    but this does...
    HTML Code:
    #shoppingcartHeading a {color: white;}
    the ID will override and colour it correctly, but not as a class. even as

    HTML Code:
    H3.leftBoxHeading  a ( color: white; )  /* DOESN'T WORK */
    H3.leftBoxHeading  a:visited { color: green; }  /* DOESN'T WORK */
    H3.leftBoxHeading  a:hover { color: red; } /* works*/ 
    H3.leftBoxHeading a:active { color: white; }  /* works */
    it doesn't seem to work.... so why does the class not work, but the ID does ?

 

 

Similar Threads

  1. Manafucturers Sidebox dropdown colours
    By casper-fly in forum Templates, Stylesheets, Page Layout
    Replies: 16
    Last Post: 5 Mar 2011, 06:59 PM
  2. Changing Side Box header colours
    By garwak in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 28 Feb 2011, 09:48 PM
  3. Edit information sidebox hyperlink colours
    By Muzz in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 10 Sep 2009, 04:27 AM
  4. Sidebox Column Colours
    By OJM in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 5 Dec 2007, 09:08 AM

Bookmarks

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
Zen-Cart, Internet Selling Services, Klamath Falls, OR