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 4 of 4
  1. #1
    Regular Coder
    Join Date
    Sep 2002
    Location
    California
    Posts
    511
    Thanks
    1
    Thanked 1 Time in 1 Post

    LInk underlines,Centering links in a table

    I was wondering how you kill that lil line that automatically appears under a link also my links are going to be in a html table and i was wondering how you could center a link in a cell if at all possible. Thanks

  • #2
    jkd
    jkd is offline
    Senior Coder jkd's Avatar
    Join Date
    May 2002
    Location
    metro DC
    Posts
    3,163
    Thanks
    1
    Thanked 18 Times in 18 Posts
    a {
    margin: 0 auto;
    text-decoration: none;
    }

  • #3
    New Coder
    Join Date
    Dec 2002
    Location
    SW England
    Posts
    12
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Links without underlining:

    Hi,

    To get rid of the underlining on the links, you could use the following CSS (insert in the <head> section of the HTML):

    <style>
    a {
    text-decoration: none;
    }
    </style>

    and to center the links in the <td> cells, use:

    <td align='center'>contents of cell</td>

    Hope this helps :)

    Cheers,
    Stuart.

  • #4
    New Coder
    Join Date
    Dec 2002
    Location
    SW England
    Posts
    12
    Thanks
    0
    Thanked 0 Times in 0 Posts

    5 minutes later...

    However, I defer to JKD who was obviously writing at the same time as me! :)


  •  

    Posting Permissions

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