Solved

<a href....> text

Posted on 2013-12-23
2
226 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
2 Comments
 
LVL 35

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 35

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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Use these top 10 tips to master the art of email signature design. Create an email signature design that will easily wow recipients, promote your brand and highlight your professionalism.
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 items using CSS's three positioning types Create a new HTML document with an internal stylesheet.: Create another div in CSS and name it Absolute : Type "position:absolute;" and "top:10px; left:50p…
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).

696 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