Grow your CSS skills. Land your dream job.

Link Color In Table

  • # June 12, 2013 at 3:23 pm

    Hello, everyone! I’m racking my brain here and probably shouldn’t be.

    For the following page:
    [Your text to link here…](http://www.nintendonerds.com/animal-crossing-new-leaf-pictures “Animal Crossing: New Leaf Pictures”)

    …I’m trying to give the links (they’re already underlined) a specific color. I can’t seem to figure out how to class them so the color shows up. I’d like a color for the link hover as well.

    What gives? Is something being overridden?

    Thanks!

    # June 12, 2013 at 3:26 pm

    Your structure looks like this:

    Some Text

    Some more text here

    The actual anchor color is going to be overridden by the h2 color which is `#444`. You’d need to do something like `a h2 { color: pink; }` for your selector to override it.

    # June 12, 2013 at 3:26 pm

    Try something like

    .dl_sizes a {
    color:xxxxxx;
    }

    # June 12, 2013 at 3:28 pm

    Ahhh…there’s more than one link per table so you may need to do both.

    # June 12, 2013 at 4:24 pm

    Thanks for the quick responses!

    I still can’t figure out that second column, even after I changed it from an h2 –> span. Any idea what’s keeping those links from having a hover color of #1D2023?

    # June 13, 2013 at 2:26 pm

    …just wanted to give this a bump so it doesn’t get buried. :)

Viewing 6 posts - 1 through 6 (of 6 total)

You must be logged in to reply to this topic.

*May or may not contain any actual "CSS" or "Tricks".