473,396 Members | 1,995 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

How to get text link to show underline when mouse rolls over.

What do I add to the style sheet to do this? Thanks.

-Paul, the CSS Newbie
Jul 20 '05 #1
6 9454


Paul Kaufman wrote:
What do I add to the style sheet to do this? Thanks.


a:hover {text-decoration:underline;}

--
/Arne
Jul 20 '05 #2
Subject: How to get text link to show underline when mouse rolls over.

Please include question to body.

In article Paul Kaufman wrote:
What do I add to the style sheet to do this? Thanks.


a:hover {text-decoration:underline;}

or if you use <a name>s, add this:
a[name]:hover {text-decoration:inherit;}
--
Lauri Raittila <http://www.iki.fi/lr> <http://www.iki.fi/zwak/fonts>
Saapi lähettää meiliä, jos aihe ei liity ryhmään, tai on yksityinen
tjsp., mutta älä lähetä samaa viestiä meilitse ja ryhmään.

Jul 20 '05 #3

"Paul Kaufman" <pk******@nc.rr.com> wrote in message
news:ef**************************@posting.google.c om...
| What do I add to the style sheet to do this? Thanks.
|
| -Paul, the CSS Newbie

This should provide you with what you want

a:link
{color:#00c;text-decoration:none;background-color:transparent;}
a:visited
{color:#009;text-decoration:none;background-color:transparent;}
a:hover
{color:#c00;text-decoration:underline;background-color:transparen
t;}
a:active
{color:#f00;text-decoration:underline;background-color:transparen
t;}

This would go into your external css.

hth
--
Chet
ng******@NOcharterSPAM.net (remove NO.....SPAM)
Jul 20 '05 #4
On Thu, 19 Feb 2004 21:57:56 +0200, Lauri Raittila
<la***@raittila.cjb.net> wrote:
Subject: How to get text link to show underline when mouse rolls over.

Please include question to body.

In article Paul Kaufman wrote:
What do I add to the style sheet to do this? Thanks.


a:hover {text-decoration:underline;}

or if you use <a name>s, add this:
a[name]:hover {text-decoration:inherit;}

Adding only this: is OP making it clear to the user that the links are
links? If you remove the underlining, how will the user know to hover
there?
Jul 20 '05 #5
Neal <ne*****@spamrcn.com> wrote:
<la***@raittila.cjb.net> wrote:
In article Paul Kaufman wrote:
Subject: How to get text link to show underline when mouse rolls over.

a:hover {text-decoration:underline;}

or if you use <a name>s, add this:
a[name]:hover {text-decoration:inherit;}


Adding only this: is OP making it clear to the user that the links are
links? If you remove the underlining, how will the user know to hover
there?


Quite right. Use something like this:

p:hover a:link,
li:hover a:link,
a:hover {text-decoration:underline}

and the underlines will appear when you hover anywhere _near_ the links.

--
Karl Smith.
Jul 20 '05 #6
On 20 Feb 2004 06:56:33 -0800, Karl Smith <go************@kjsmith.com>
wrote:
p:hover a:link,
li:hover a:link,
a:hover {text-decoration:underline}

and the underlines will appear when you hover anywhere _near_ the links.


.... unless the user is among the IE using population, as I understand.
This is ONE thing I wish IE got right.
Jul 20 '05 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Chris Coho | last post by:
Is there any way to get the same affect as alt text for an image on a table cell? For instance I want if someone rolls the mouse over the cell for some instructions to pop up like they do for...
6
by: killerkatt | last post by:
I am new to CSS and would like to know if there is a way to make this happen with CSS: image1 and image 2 are laid out at the top of the page. when the mouse hovers over image1, a paragragh or...
5
by: TomTom | last post by:
Hi, With C#, is it possible to hover a mouse pointer on the Windows UI controls and show the UI text? For example, can I hover my mouse over "File" in the menu bar and show the text "File" on a...
3
by: rodchar | last post by:
hey all, does anyone know how to make the underline go away when you mouse over the link button? thanks, rodchar
1
by: Richard | last post by:
A menu page has a set of A tages in a UL The menu (in IE) will only get the hover visualization if the mouse rolls over underlined text. I want it to happen if the rollover occurs anywhere in...
2
by: george.leithead | last post by:
Hi all, I have a very strange problem! In following Web page (which is generated from a CMS System), the navigation to the left 'dissapears' when you roll the mouse over the links? It does not...
0
by: williamr4j | last post by:
Very first thing, after preloader, is a blurry image that is supposed to get clear when mouse goes over the image. Problem is, the image that is clear will not, when previewing the movie, move from...
1
by: =?Utf-8?B?Um9iZXJ0IFNtaXRo?= | last post by:
Hi, I have a repeater control with rows in made of of link buttons so that they react to a click as below: <div> <ASP:Repeater id="rptUserList" runat="server"...
19
by: andersond | last post by:
I want the text to change from gray to bright red when the mouse is moved over the name of our company. Here is the code that doesn't work. What do I need to change to make this work? function...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.