Solved

<a href....> text

Posted on 2013-12-23
2
216 Views
Last Modified: 2013-12-23
I'm sure this is an easy one.

How do I display text without having the underline in the code.

$odd..."[TENANT] has the tenant name.  I want the font color to be black and I don't want it to be underlined.

echo '<a href="Space_Display.php?id=NY10300006851100">';
                                    echo $odd_bldg[$count]['TENANT'];
                                    echo "</a>";
0
Comment
Question by:breeze351
  • 2
2 Comments
 
LVL 34

Expert Comment

by:Dan Craciun
ID: 39736850
Make a style.

Place this in your <head> section:

<style type="text/css">
   a:link {text-decoration: none; color: black;}
   a:visited {text-decoration: none; color: black;}
   a:active {text-decoration: none; color: black;}
   a:hover {text-decoration: underline; color: red;}
</style>

HTH,
Dan

LE: formatting
0
 
LVL 34

Accepted Solution

by:
Dan Craciun earned 500 total points
ID: 39736866
Or, use inline CSS:
echo '<a href="Space_Display.php?id=NY10300006851100" style="text-decoration: none">';
                                    echo $odd_bldg[$count]['TENANT'];
                                    echo "</a>";
0

Featured Post

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

Deprecated and Headed for the Dustbin By now, you have probably heard that some PHP features, while convenient, can also cause PHP security problems.  This article discusses one of those, called register_globals.  It is a thing you do not want.  …
This article explains how to prepare an HTML email signature template file containing dynamic placeholders for users' Azure AD data. Furthermore, it explains how to use this file to remotely set up a department-wide email signature policy in Office …
In this tutorial viewers will learn how to position overlapping items using z-index in CSS. They will also learn the restrictions on the z-index property.  Create a new HTML document with an internal stylesheet.: Create a div in CSS and name it Red.…
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)

708 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now