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

Home Forums CSS Links design problems

  • This topic is empty.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
  • #32339

    I have a problem separating css for different links throughout my site. For example, my navigation tab links and links inside the text have the same design. I just started learning css so I would appreciate any help. Thanks.


    Well let’s say you have link in a navigation tab like this:

    And a link in normal text:

    Text for link

    In your CSS, you can target the link in your navigation and the link in your paragraph, and style them differently with the following code:

    #navigation a { color: red; }
    #maintext a { color: blue; }

    That should give the navigation links a red color, and the maintext paragraph links a blue color.


    I’ll give it a try……….thanks Bob.

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