Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 5 of 5
  1. #1
    New Coder
    Join Date
    Mar 2009
    Posts
    89
    Thanks
    27
    Thanked 0 Times in 0 Posts

    CSS a:link - sort of.

    Morning!

    I have a nice nav bar I'm putting together, going fine....except one small detail...my client has 2 links that aren't active yet. he wants them to be "grayed out"....so i have my a:link, which is set as white...how do I make a there-is-no-link-here:link in gray? Is there a specific coding for that or do i just make that one gray. make sense? sorry, it's too early for my brain to be functioning....

    carrie

  • #2
    Supreme Master coder! abduraooft's Avatar
    Join Date
    Mar 2007
    Location
    N/A
    Posts
    14,861
    Thanks
    160
    Thanked 2,223 Times in 2,210 Posts
    Blog Entries
    1
    make sense?
    Not really! Please post a link to your page or at least your relevant html+CSS
    The Dream is not what you see in sleep; Dream is the thing which doesn't let you sleep. --(Dr. APJ. Abdul Kalam)

  • #3
    New Coder
    Join Date
    May 2009
    Location
    philippines
    Posts
    50
    Thanks
    6
    Thanked 1 Time in 1 Post

    Smile

    you can always try <a class="inactive" href="#">dead link</a>

    then style the class="inactive" link as grey.

    or just remove the href="#" entirely to so that it'll truly be a dead link.

    hope that helps..

  • Users who have thanked sim_pack for this post:

    intcon (05-24-2009)

  • #4
    New Coder
    Join Date
    Mar 2009
    Posts
    89
    Thanks
    27
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by sim_pack View Post
    you can always try <a class="inactive" href="#">dead link</a>

    then style the class="inactive" link as grey.

    or just remove the href="#" entirely to so that it'll truly be a dead link.

    hope that helps..
    yup it does! thanks!

  • #5
    The fat guy next door VIPStephan's Avatar
    Join Date
    Jan 2006
    Location
    Halle (Saale), Germany
    Posts
    8,695
    Thanks
    6
    Thanked 1,011 Times in 984 Posts
    If you do have a dead/non-functional link then please don’t use an href attribute unless/until you have an actual link URL. The hash/number sign is not a proper way of marking up dead links (even though it’s unfortunately widely used).


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •