SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Member
    Join Date
    Jun 2002
    Posts
    4
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    <a href> without the underline?

    How can I display the word in between the "<a href="some.html">" and </a> in a way that the word will not be underlined? For example, "html//www.somesite.com" will be displayed as "html//www.somesite.com" but the link will still remain.

  2. #2
    SitePoint Wizard
    Join Date
    Jul 2001
    Location
    The Netherlands
    Posts
    2,617
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    This can be done through CSS. You should use the following code for it:

    Code:
    <a href="some.html" style="text-decoration: none;">http://www.somesite.com</a>

  3. #3
    SitePoint Evangelist cyngon's Avatar
    Join Date
    Aug 2001
    Location
    Livonia, MI, USA
    Posts
    513
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Or, you could define a nounderline class using CSS:

    Code:
    <style type="text/css">
    a.nounderline {
       text-decoration: none;
    }
    And then make your links like this:

    Code:
    <a href="link.htm" class="nounderline">Link</a>


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
  •