Welcome to TalkGraphics.com
Results 1 to 4 of 4
  1. #1
    Join Date
    Aug 2006
    Posts
    73

    Question Multiple link styles

    I'm trying to remake my page, to make it without frames.
    first problem I'm running into is this:
    My menu is made up of a set of links with some style to them, however I don't want the other links on the page to look like that, but I'd like to have the same css document for the whole page, instead of multiple ones.

    How can this be done?

  2. #2
    Join Date
    Nov 2006
    Location
    Uniontown, OH
    Posts
    382

    Default Re: Multiple link styles

    If I understand what you want to do, yes you can do that and just have one css file. You can set up your regular links as normal. Then for your special links you could create a class for the differently styled links. For example something like this:

    HTML Code:
    <a href="http://www.somesite.com" class="mystyledlink">
    Then in your css:

    Code:
              a.mystyledlink:link {color: red;}
              a.mystyledlink:visited {color: blue;}
              a.mystyledlink:hover {color: pink;}
              a.mystyledlink:active {color: green;}
    You could also use descendent selectors. Hope this helps.
    Joe

  3. #3
    Join Date
    Aug 2006
    Posts
    73

    Default Re: Multiple link styles

    Exacly what I needed, thx

  4. #4
    Join Date
    Nov 2006
    Location
    Uniontown, OH
    Posts
    382

    Default Re: Multiple link styles

    Cool, glad it helped.
    Joe

 

 

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
  •