HTMLGoodies
The ultimate html resource
Earthweb.com


About the Double-Underlined Links


Become a Partner




Search Clipart.com:



internet.commerce















HTML Goodies : HTML and Graphics Tutorials : Getting Started Tutorial: So, You Don't Want Links Underlined, Huh?

HTML GOODIES TO GO NEWSLETTER


Other Related Newsletters

So, You Don't Want Links Underlined, Huh?


By Joe Burns

Take a look at the links below:

HTML Goodies   ESPN
Van Halen News Desk ABC News Pepsi

     Notice anything about them? They are not underlined, yet they are still active. (If they are underlined on your browser, then you do not have a browser level high enough to use this command; you still can use it, though, because others will have the correct browser!)

     For a good while, people would write to me and ask how to rid the links on their page of the awful underline. I would always write back that you could always get rid of it: Just go into your browser's Preferences and set it so the links are not underlined. Done.
     But I knew what they wanted -- they wanted the links non-underlined on all browsers, not just theirs. Well, here's how you do it:


    <STYLE>
    <!--
    A{text-decoration:none}
    -->
    </STYLE>


     You place that Style Command statement inside the HEAD commands on your HTML document. In that position, it affects all the links and makes them plain. They retain their coloring, but lose their underline.

Affecting Just One Link

     I have been given two ways of making only one link non-underlined. Here they are in their own words.

This suggestion by Luke Erichsen:

There IS a way to make just one link not underlined. Simply do this:


<A HREF="page.html" STYLE="text-decoration: none">Huh</a>


This suggestion by >Nikhil Gupta:

Place this style command in place of the one you have above:

<style>
      a.1{text-decoration:none}
      a.2{text-decoration:underline}
</style>

     (From Joe: The numbers 1 and 2 are classes. Referring a link to class 1 does the "none" text decoration, class 2 does the other.)

And then later in the program place this:


<a class="1" href="http://some.server.com/some page/">
This link is not underlined...</a>


This is for the link which should not be underlined:


<a class="2" href="http://some.server.com/some page/"> This link IS underlined...</a>


To underline it replace class="1" with class="2" like above.


Enjoy!

Tools:
Add htmlgoodies.com to your favorites
Add htmlgoodies.com to your browser search box
IE 7 | Firefox 2.0 | Firefox 1.5.x
Receive news via our XML/RSS feed

IT Management Networking & Communications Web Development Hardware & Systems Software Development Earthwebnews.com

internet.comearthweb.comDevx.commediabistro.comGraphics.com

Search:

Jupitermedia Corporation has two divisions: Jupiterimages and JupiterOnlineMedia

Jupitermedia Corporate Info

Legal Notices, Licensing, Reprints, Permissions, Privacy Policy.
Advertise | Newsletters | Tech Jobs | Shopping | E-mail Offers

Whitepapers and eBooks

Intel Whitepaper: Comparing Two- and Four-Socket Platforms for Server Virtualization
IBM Solutions Brief: Go Green With IBM System xTM And Intel
HP eBook: Simplifying SQL Server Management
IBM Contest: Are You the Next Superstar? Join the "Search for the XML Superstar" Contest to Find Out
Microsoft PDF: Top 10 Reasons to Move to Server Virtualization with Hyper-V
Microsoft PDF: Six Reasons Why Microsoft's Hyper-V Will Overtake Vmware
Microsoft Step-by-Step Guide: Hyper-V and Failover Clustering
Intel PDF: Quad-Core Impacts More Than the Data Center
Intel PDF: Virtualization Delivers Data Center Efficiency
Go Parallel Article: PDC 2008 in Review
Microsoft PDF: Top 11 Reasons to Upgrade to Windows Server 2008
Avaya Article: Communication-Enabled Mashups: Empowering Both Business Owners and IT
Intel Whitepaper: Building a Real-World Model to Assess Virtualization Platforms
  PDF: Intel Centrino Duo Processor Technology with Intel Core2 Duo Processor
Microsoft Article: Build and Run Virtual Machines with Hyper-V Server 2008
Go Parallel Article: Q&A with a TBB Junkie
IBM Whitepaper: Innovative Collaboration to Advance Your Business
Internet.com eBook: Real Life Rails
IBM eBook: The Pros and Cons of Outsourcing
Internet.com eBook: Best Practices for Developing a Web Site
IBM CXO Whitepaper: The 2008 Global CEO Study "The Enterprise of the Future"
Avaya Article: Call Control XML in Action - A CCXML Auto Attendant
IBM CXO Whitepaper: Unlocking the DNA of the Adaptable Workforce--The Global Human Capital Study 2008
Adobe Acrobat Connect Pro: Web Conferencing and eLearning Whitepapers
HP eBook: Guide to Storage Networking
MORE WHITEPAPERS, EBOOKS, AND ARTICLES