Solved

<a href....> text

Posted on 2013-12-23
2
222 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

Active Directory Webinar

We all know we need to protect and secure our privileges, but where to start? Join Experts Exchange and ManageEngine on Tuesday, April 11, 2017 10:00 AM PDT to learn how to track and secure privileged users in Active Directory.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Showing your events from Google Calendar in Google Maps Why? I travel all week and I thought it would be ideal if staff in office knew where I was based on my calendar. (OK real reason: my son wanted to see where I would be working, and I thoug…
This article discusses how to create an extensible mechanism for linked drop downs.
In this tutorial viewers will learn how add a scalable full-width header using CSS3. Create a new HTML document with an internal stylesheet. Set a tiled background.:  Create a new div and name it Header. Position it with position:absolute at the top…
In this tutorial viewers will learn how to embed an audio file in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: : The declaration should display (CODE) HTML5 is supported by the most recent versions of all major browsers…

820 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