Links help

Discussion in 'Web Design & Coding' started by RD2DG, Dec 6, 2003.

  1. RD2DG

    RD2DG I smell a bump! VIP Member

    Joined:
    Oct 11, 2003
    Messages:
    549
    Likes Received:
    11
    Location:
    Madison
    Okay im wounder how to make it so the links dont turn a certian color when you move your mouse over them....I have tried
    HTML:
    <body link="000000" alink="000000" vlink="000000">
    but it still is green when i mouseover it...... Is this something i can change or is it something that the sever dose.....i attached a screen shot so you can see what i mean.
     

    Attached Files:

    RD2DG, Dec 6, 2003
    #1
    1. Advertisements

  2. RD2DG

    James Photojournalist

    Joined:
    Dec 24, 2002
    Messages:
    6,662
    Likes Received:
    35
    Try this:

    HTML:
    a:link {
     	color: #FFFFFF
             text-decoration: underline;
     }
     a:visited {
     	color: #FFFFFF
             text-decoration: underline;
     }
     a:active {
     	color: yellow;
     	text-decoration: none;
     }
     a:hover {
     	color: yellow;
     	text-decoration: none;
     }
    You can change around the colors and the text decoration around a lot. This is called CSS. CSS is great. :)
     
    James, Dec 6, 2003
    #2
    1. Advertisements

  3. RD2DG

    S Walch MAME 0.64 :) VIP Member

    Joined:
    Jun 2, 2003
    Messages:
    1,026
    Likes Received:
    14
    Location:
    Manchester
    To input CSS in just that page only do this:

    <head>
    <style type="text/css">
    a:link {
    color: #FFFFFF
    text-decoration: underline;
    }
    a:visited {
    color: #FFFFFF
    text-decoration: underline;
    }
    a:active {
    color: yellow;
    text-decoration: none;
    }
    a:hover {
    color: yellow;
    text-decoration: none;
    }
    </style>
    </head>
     
    S Walch, Dec 6, 2003
    #3
  4. RD2DG

    RD2DG I smell a bump! VIP Member

    Joined:
    Oct 11, 2003
    Messages:
    549
    Likes Received:
    11
    Location:
    Madison
    Well i inserted it but i think it has to do with the server now.... the sever inserts the code into the <body> tag.. i attached another pic of it...
     

    Attached Files:

    RD2DG, Dec 6, 2003
    #4
  5. RD2DG

    wordless almost pro

    Joined:
    Mar 27, 2003
    Messages:
    95
    Likes Received:
    0
    Location:
    Pennsylvania
    First off, remove the link codes from your <body> tag.

    Since it seems that your server is lacking in intelligence, you are going to need to email your server and tell them about this problem.

    But if you want to get your links working now, then define a class to your links:
    HTML:
      <style type="text/css">
      a.mine:link {
      color: #FFFFFF
      text-decoration: underline;
      }
      a.mine:visited {
      color: #FFFFFF
      text-decoration: underline;
      }
      a.mine:active {
      color: yellow;
      text-decoration: none;
      }
      a.mine:hover {
      color: yellow;
      text-decoration: none;
      }
      </style>
    Now that you have assigned your links the class mine, we simple insert the property into the link:
    HTML:
      <a href="my_page.htm" class="mine">My Link</a>
    And now whenever you add the property mine to a link, the link will take on the properies characteristics ;)

    Though please email your server inorder to save you time and effort.
     
    Last edited: Dec 6, 2003
    wordless, Dec 6, 2003
    #5
  6. RD2DG

    RD2DG I smell a bump! VIP Member

    Joined:
    Oct 11, 2003
    Messages:
    549
    Likes Received:
    11
    Location:
    Madison
    Thanx alot!!! that work really well.... And the people that run the server do not seem to contact me on this issue....But your way work really well...I Certainly learned something...this means i can make like certain types of links with only one tag to add in!!!I have to get into this "css" stuff
     
    RD2DG, Dec 7, 2003
    #6
  7. RD2DG

    James Photojournalist

    Joined:
    Dec 24, 2002
    Messages:
    6,662
    Likes Received:
    35
    CSS and XHTML can work together very nicely. Just wait until we upgrade out forums. :D
     
    James, Dec 7, 2003
    #7
  8. RD2DG

    S Walch MAME 0.64 :) VIP Member

    Joined:
    Jun 2, 2003
    Messages:
    1,026
    Likes Received:
    14
    Location:
    Manchester
    Go and learn about CSS and XHTML from (you've guessed it)

    http://www.w3schools.com

    :p
     
    S Walch, Dec 7, 2003
    #8
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.