SitePoint Sponsor

User Tag List

Results 1 to 6 of 6

Hybrid View

  1. #1
    SitePoint Enthusiast
    Join Date
    Feb 2002
    Location
    Birmingham UK
    Posts
    42
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Different link styles?

    Help on this please.

    I've got a menu with text links in.
    I don't want the menu links to have an underline at any state but I want all my document links to be underlined.

    How do I create a different set of A:... styles for my menu but leave the standard A:... styles for the rest of my documents?


    Thanks.

  2. #2
    1-800-JMULDER JMulder's Avatar
    Join Date
    May 2001
    Location
    The Netherlands
    Posts
    1,745
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Code:
    A.classname:link { properties }
    Same for the HOVER, ACTIVE and VISITED status.

    Then in the URL you use:

    Code:
    <a href="bla.html" class="classname">Bla</a>
    Jeroen Mulder

    w: www.jeroenmulder.com

  3. #3
    SitePoint Wizard iTec's Avatar
    Join Date
    May 2001
    Location
    Sydney, Australia
    Posts
    2,243
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    in your style sheet place this code

    a.menu:link { text-decoration: none}
    a.menu:Active { text-decoration: none}
    a.menu:visited { text-decoration: none}
    a.menu:hover { text-decoration: none}

    now in the links in your menu you would have

    <a href="link.html" class="menu">link</a>

  4. #4
    SitePoint Enthusiast
    Join Date
    Feb 2002
    Location
    Birmingham UK
    Posts
    42
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Cheers guys!

    Speed and quality - probably the best the net can offer!

  5. #5
    SitePoint Wizard iTec's Avatar
    Join Date
    May 2001
    Location
    Sydney, Australia
    Posts
    2,243
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally posted by simey_j
    Speed and quality - probably the best the net can offer!
    Yep, thats what SP is all about
    glad to help :0)

  6. #6
    1-800-JMULDER JMulder's Avatar
    Join Date
    May 2001
    Location
    The Netherlands
    Posts
    1,745
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Yeah no problem
    Jeroen Mulder

    w: www.jeroenmulder.com


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
  •