Welcome to Welcome to DNF.com™ - Domain Sales, Domain Forum, Domain Appraisals, Domain Registrars

If you are new to domains and looking to buy, sell and learn about domains then you have come to the right place. DNForum is the largest domain name community on the internet and continues to grow every day. There are over 105,000 domainers on DNForum doing everything from buying domains, selling domains, learning about domains and discussing domains. Take a minute and Register.

Register Today on DNForum IT'S FREE!

Results 1 to 7 of 7

Thread: link underline

  1. #1
    Platinum Lifetime Member
    Bionic's Avatar
    Join Date
    Oct 2003
    Posts
    1,191
    DNF$
    1,088
    Bank
    0
    Total DNF$
    1,088
    Donate  

    Arrow link underline

    I want a text link to have no underline except on hover.

    This will remove the underline altogether

    <a href="(L)" style="text-decoration:none">click</a>

    and that's the form I'd like to use, not a seperate style statement.

  2. #2
    DNF Addict
    south's Avatar
    Join Date
    Dec 2006
    Location
    33143/04930
    Posts
    4,905
    DNF$
    6,762
    Bank
    0
    Total DNF$
    6,762
    Donate  
    Perhaps someone with a better memory / more well versed can better answer the question., but you may want to something with the border.

    Like this: http://www.webreference.com/dhtml/di...er/hover2.html

    You might be better off just using images with img tags for SEs.
    All offers good for 72 hours except running auctions

    Progeria Research | Pulmonary Fibrosis | Dammit!

  3. #3
    .scot
    ftaylor's Avatar
    Join Date
    Apr 2008
    Location
    Glasgow
    Posts
    473
    DNF$
    4,580
    Bank
    0
    Total DNF$
    4,580
    Donate  
    Bionic.... Why don't you want to use a separate style statement?

    You are far better off with a separate stylesheet, or even a separate style declaration.

    This is what you need at the very least:

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

    a:hover {
    text-decoration: underline;
    }
    </style>
    www.musicdownloads.tv for sale, taking offers.

  4. #4
    Amms.com
    tristanperry's Avatar
    Join Date
    Jan 2007
    Location
    Wales, UK
    Posts
    1,675
    DNF$
    959
    Bank
    0
    Total DNF$
    959
    Donate  
    It's impossible to do this with CSS and without using a <style> block in the <head> section.

    You can do this via a onmouseover="javascript:..." JS hack, but that'd still require code in the <head> section and is just a bit pointless.

    Just add in what ftaylor says, it's the only way to do what you want since you can't use pseudo-names (i.e. :active, :hover etc) as an inline style.

  5. #5
    Platinum Lifetime Member
    Bionic's Avatar
    Join Date
    Oct 2003
    Posts
    1,191
    DNF$
    1,088
    Bank
    0
    Total DNF$
    1,088
    Donate  
    the HTML is for visitors to copy and add a link to their site, having a big block of code to insert didn't look too good.

    I just used text-decoration:none, they can modify it themselves to fit their site.

    thanks all

  6. #6
    .scot
    ftaylor's Avatar
    Join Date
    Apr 2008
    Location
    Glasgow
    Posts
    473
    DNF$
    4,580
    Bank
    0
    Total DNF$
    4,580
    Donate  
    If it was for visitors to copy and paste into their site, then their own site's style sheets would apply. Noone is going to copy and paste a link that breaks their stylesheets.
    www.musicdownloads.tv for sale, taking offers.

  7. #7
    Platinum Lifetime Member

    Join Date
    Apr 2009
    Posts
    47
    DNF$
    262
    Bank
    0
    Total DNF$
    262
    Donate  
    Thanks for this thread, was always getting screwed up w/ a and a: hover. Much thanks!

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
  •  

Domain name forum recommended by Domaining.com