Results 1 to 5 of 5
  1. #1
    Join Date
    Nov 2009
    Posts
    4
    Plugin Contributions
    0

    Default Can not get link states to work properly (CSS)

    I have been working on this and I'm a bit stumped right now. The links on the left side box are not showing the active status that I've coded.

    Here's a link to my site so you can see what I mean:

    http://hollibmedia.c o m/lee-test

    When you're on an active page, the link is supposed to stay #FFC, but it reverts back to the green.

    Code:
    /* LINK FORMATTING */
    a img {
    	border: none; 
    	}
    
    a:link {
    	color: green;
    	text-shadow: 1px 1px #666666; 
    	text-decoration: none;
    	}
     
    a:visited {
    	color: #339900;
    	text-shadow: 1px 1px #666666; 
    	text-decoration: none;
    	}
    
    a:hover {
    	color: #FFC;
    	text-shadow: 1px 1px #666666; 
    	}
    
    a:active {
    	color: #FFC;
    	text-shadow: 1px 1px #666666; 
    	}
    
    .leftBoxContainer {
    /*	border: 1px solid #ffffff; */
    	margin-top: 1.5em;
    	}
    
    .sideBoxContent {
    	font-size: 2em;
    /*	background-color: #ffffff; */
    	padding: 0.4em;
    	}
    
    .sideBoxContent a:link {
    	text-shadow: 1px 1px #666666;
    	color: green;
    	text-decoration: none;
    	}
     
    .sideBoxContent a:visited {
    	color: #339900;
    	text-decoration: none;
    	}
    
    .sideBoxContent a:hover {
    	color: #FFC;
    	}
    
    .sideBoxContent a:active {
    	color: #FFC;
    	}
    Also, when I took the shadow effect out of the regular links (not the .sideBoxContent links), just part of the links retained the shadow effect and I'm not sure why.

    Any help that can be given would be greatly appreciated! If any more information is needed, please let me know.

    ~HB
    Last edited by hcb39; 1 Dec 2009 at 08:22 PM.

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

    Default Re: Can not get active link state to work (CSS)

    :active in the selector does not mean the page that is currently being displayed, it means the moment between clicking a link and reloading the page. You will often not see the "active" state at all.

    The categories sidebox has coding to apply a different class to the current category and its parent(s), but other sideboxes do not have any means of making the distinction.

  3. #3
    Join Date
    Nov 2009
    Posts
    4
    Plugin Contributions
    0

    Default Re: Can not get link states to work properly (CSS)

    Thank you so much. It's only been 500 years since I've done a website, so I lost my CSS mojo.

    Does that mean there is no state that one could use to denote being on a specific page? I do remember hardcoding it before on old sites, but I wasn't sure if there was something I could do in this.

    Again, thanks!

    HB

  4. #4
    Join Date
    Nov 2006
    Location
    Dartmouth, NS Canada
    Posts
    2,378
    Plugin Contributions
    0

    Default Re: Can not get link states to work properly (CSS)

    There's another thread that is in the process of dealing with this issue.

    Rob

  5. #5
    Join Date
    Nov 2009
    Posts
    4
    Plugin Contributions
    0

    Default Re: Can not get link states to work properly (CSS)

    Thank you for that. I'm feeling so overwhelmed and I don't even know where to start with all of that. For as much as I do know and understand, I need someone to break it down a bit more for me. I'll check out that thread and hopefully get something from it. Thanks again for the link.

    HCB

 

 

Similar Threads

  1. Can not get my footer to work properly
    By LVT LTD in forum Basic Configuration
    Replies: 2
    Last Post: 22 Jan 2010, 12:08 AM
  2. Can't get side box link to work
    By scottsplace in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 26 Feb 2009, 10:57 PM
  3. Easy Poplulate Can Not work properly, help please!
    By lioncity in forum All Other Contributions/Addons
    Replies: 3
    Last Post: 17 Dec 2008, 09:15 PM
  4. Easy Poplulate Can not work properly, help please!
    By lioncity in forum Templates, Stylesheets, Page Layout
    Replies: 9
    Last Post: 15 Dec 2008, 07:57 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