www.webdeveloper.com
Results 1 to 6 of 6

Thread: Problem with active link showing

  1. #1
    Join Date
    Apr 2006
    Location
    Cape Town, South Africa
    Posts
    16

    Unhappy Problem with active link showing

    I would like the same (blue)colour to show when on the page of selected link that the mouse over colour. (indication for browser to know where you are on site - show in website menu) As far as I know this is the active link. A have put it as such in my CSS, but it is not working. Can anyone spot the problem in my css?
    Attached Files Attached Files

  2. #2
    Join Date
    Apr 2006
    Posts
    370
    The "active" state happens only between clicking the link and the page loading. If you want to indicate a "current" link, then you need to do something like:

    <a href="#" class="active">link</a>

    ... then give .active the same css formatting as "hover"

  3. #3
    Join Date
    Apr 2006
    Location
    Cape Town, South Africa
    Posts
    16
    If you have a look at my attached css file. I already have a style for .LinkA that has to be like that. I am looking for something to ad, so that when you are on the page of that link, then it is the blue. Is that possible, or do I have to apply, like in your example a diffirent style to the link when it is on that certain page?

  4. #4
    Join Date
    Aug 2005
    Location
    Universe #384918862154 - third door on the left
    Posts
    236
    Have you tried these:
    A:ACTIVE{COLOR:0000FF;}
    <BODY ALINK="#0000FF">

  5. #5
    Join Date
    Apr 2006
    Posts
    370
    Semblance: yes, it is necessary to make changes to the code to show the "current" page. Web pages are "stateless:" they don't know which was the "last link to be clicked."

  6. #6
    Join Date
    Apr 2006
    Location
    Cape Town, South Africa
    Posts
    16
    Thankyou. So I guess, then with according "Wisest Guy's" code I must change the style of the link individually for the selected page on the link.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles