Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS Link styles

  • This topic is empty.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #24857
    nitos
    Member

    Hi, I´m having this big problem, and that its that i have a horizontal menu, and its background color is a green gradient, and over that I have some links and I want them to be white. Thats not the problem, the problem its that I also have a vertical menu that has the background set on white, but I want the links be a different color from white, so how can I make this possible?
    How can I have two different styles of color links?

    Thanks
    Jose.

    #57607
    AshtonSanders
    Participant

    Yes. That is the magic of selectors.

    That tells all links to be white

    Code:
    a { color: white; }

    If you give an ID to your navigations:

    You can tell the links to be different colors depending on what ID (#) they are in:

    Code:
    #topnav a { color: white; }
    #sidenava { color: white; }
    #57609
    nitos
    Member

    That was a really quick reply!! Thanks :D
    Its working :P

    #57613
    AshtonSanders
    Participant

    Excellent.

    You’re welcome.

Viewing 4 posts - 1 through 4 (of 4 total)
  • The forum ‘CSS’ is closed to new topics and replies.