www.webdeveloper.com
Results 1 to 5 of 5

Thread: Chrome CSS not working for A:Link

  1. #1
    Join Date
    Apr 2009
    Posts
    2

    Chrome CSS not working for A:Link

    I made a class like:

    .link a:link { color:red; }

    and put <span class="link"> in my site to catch links in a snippet of code that is generated dynamically.

    IE and Firefox seem to handle this fine, but Chrome does not. I've been trusting Chrome to be 'right', but is that not the case? Is this a chrome bug, or am I incorrectly using the bit of css, and Chrome is just the only one catching it?

    Thanks in advance.

  2. #2
    Join Date
    Dec 2005
    Posts
    2,984
    Maybe it's just me, but what is the actual problem here? You say that Chrome is not handling this like IE and Firefox but...handling what? Post the actual relevant HTML code. How does Chrome handle whatever your code is differently than IE/Firefox?
    I've switched careers...
    I'm NO LONGER a scientist,
    but now a web developer...
    awesome.

  3. #3
    Join Date
    Apr 2009
    Posts
    2
    Man, am I an idiot. Please disregard my previous.

  4. #4
    Join Date
    Dec 2008
    Location
    Denver, Colorado
    Posts
    389
    Did you verify the order they are in your css?

    Code:
    A:link
    A:visited 
    A:hover
    A:active

  5. #5
    Join Date
    Aug 2013
    Posts
    1
    try it
    write into html code

    <a style="color:#000000" href="#"></a>

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