SitePoint Sponsor

User Tag List

Results 1 to 3 of 3

Thread: Text

  1. #1
    SitePoint Enthusiast
    Join Date
    Jan 2000
    Location
    Thomasville, GA
    Posts
    63
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hi, I want to know how to make links look like regular text, without being underlined!

    ------------------
    Taylor a.k.a ReSSure
    Email: Ressure@usa.net
    URL: twp3.cjb.net


  2. #2
    SitePoint Guru Vincent Puglia's Avatar
    Join Date
    Feb 2000
    Location
    where the World once stood
    Posts
    700
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hi,

    hover (works only for IE)


    Vinny

    ------------------
    GrassBlade: cut&paste javascript

  3. #3
    ********* Addict
    Join Date
    Feb 2000
    Location
    NE FL, USA
    Posts
    301
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I beg to differ Vincent.

    I've had success with this before. Try:

    <style>
    a { text-decoration: none; color: #FF0033; font-weight: bold}
    a:hover { color: #0000FF; font-weight: bold}
    a:visited { color: #0000FF; font-weight: bold}
    </style>

    This is called Cascading Style Sheets (CSS) and is part of DHTML. The 'a' section defines normal links. The 'text-decoration:' area defines whether or not they are underlined. I think the color and font-weight sections are pretty self explanatory. When someone scrolls over the link, if you want it to change colors, or be underlined then you would modify the 'a:hover' section. Modify the 'a:visited' section, for the links to look different after they have visited them. You can also have different links do different stuff, like your navigational links. Just specify a class. To do that, you just add the name for the class like so 'a.class' or 'a.class:hover' for hover and visited characteristics.

    Make sure that the info in your body tag doesn't conflict, and put the style info in between the head tags in your document.

    By the way, this just bruhes the surface of what you can do with DHTML. If you want to see this code in action, then visit this web site.

    I hope this helps! For more info on DHTML, visit http://www.DynamicDrive.com/

    Mike

    ------------------
    Street Bikers United protecting the rights of motorcyclists worldwide.
    Cosmic Custom Airbrush - Hawaii's premier airbrush studio.


    [This message has been edited by DynaMike (edited February 26, 2000).]


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
  •