SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    Working on it... Contrid's Avatar
    Join Date
    Apr 2006
    Location
    Online
    Posts
    955
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)

    Opera a:active links problem

    Hey there,

    I'm having a slight problem here with the way Opera shows my links. (specificaly active/not-visited ones). See the code below :

    HTML Code:
    a, a:visited, a:active
    {
    	font-family:Arial, Helvetica, sans-serif;
    	font-size:12px;
    	font-weight:bold;
    	color:#333333;
    	text-decoration:none;
    }
    a:hover
    {
    	font-family:Arial, Helvetica, sans-serif;
    	font-size:12px;
    	font-weight:bold;
    	color:#333333;
    	text-decoration:underline;
    }
    For some odd reason Opera (not Firefox or IE) is showing my links as blue. This only happens with the a:active state.

    Does anyone have an idea why this is happening? I honestly can't seem to figure out how to fix it.

    Thanks.
    And so I got lost in code...completely asphyxiated by it...

    Premium WordPress plugins - Tribulant Software

  2. #2
    Working on it... Contrid's Avatar
    Join Date
    Apr 2006
    Location
    Online
    Posts
    955
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    By making the "a" -> "a:link" it seems to sort out the problem.
    I've never used ":link" before though. I'd love to know how and why this works !?
    And so I got lost in code...completely asphyxiated by it...

    Premium WordPress plugins - Tribulant Software

  3. #3
    Working on it... Contrid's Avatar
    Join Date
    Apr 2006
    Location
    Online
    Posts
    955
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    After reading an article on the W3C site about the link psuedo class, it seems like the ":link" part is the right way to do it. I learnt something.


    http://www.w3.org/TR/REC-CSS2/select...pseudo-classes
    And so I got lost in code...completely asphyxiated by it...

    Premium WordPress plugins - Tribulant Software


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
  •