473,386 Members | 1,758 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,386 software developers and data experts.

Underline Link

Hello,

How to make the underline of a link to be a dotted line like in this
web site:
http://www.iconbuffet.com/

Thanks,
Miguel

Sep 21 '06 #1
3 3778
Well, here's how they're defining the links in CSS:

a:link,
a:visited {
color: #f40;
text-decoration: none;
border-bottom: 1px dotted #aaa;
}
a:hover {
color: #f40;
text-decoration: none;
background: #fea;
border-bottom: 1px solid #aaa;
}
Sep 21 '06 #2
shapper wrote:
How to make the underline of a link to be a dotted line like in this
web site:
http://www.iconbuffet.com/
It's right there in the CSS:

a:link,
a:visited {
color: #f40;
text-decoration: none;
border-bottom: 1px dotted #aaa;
}

I don't agree with the setting of the visited color the same as the link
color. How will the visitor know s/he's already been there?

a:visited {
color: <something else>;
}

Visited links are usually purple.

--
-bts
-Motorcycles defy gravity; cars just suck.
Sep 21 '06 #3
Beauregard T. Shagnasty wrote:
I don't agree with the setting of the visited color the same as the
link color.
Neither do I. But removing the default underlining and using a dotted bottom
border to create a fake underline isn't a good idea either. It's potentially
very confusing, since some browsers use a dotted line under some text by
default to indicate the text as an abbreviation or an acronym, which is
(normally) _not_ a link.

In special situations, replacing the default underline by a bottom border
might be reasonable, but then it should be a _solid_ border so that it
really looks like underline, just in a slightly different vertical position.
I'm thinking about special situations like a link containing the underline
character "_" that should be distinguishable, or something else in the link
text that gets hurt if there is the default underline.

--
Jukka K. Korpela ("Yucca")
http://www.cs.tut.fi/~jkorpela/

Sep 21 '06 #4

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

Similar topics

6
by: Paul Kaufman | last post by:
What do I add to the style sheet to do this? Thanks. -Paul, the CSS Newbie
8
by: Florian Brucker | last post by:
Hi! I'm trying to use a different underline color than the text color on my headings using the border-bottom method. Unfortunately the underline spans the whole width of the heading (not only...
3
by: ad.von.reeken | last post by:
Hello CSS-ers, My question is: Is it possible to use CSS to prevent the 'Gecko-underline' behind 'anchored' images on pages with patterned background images? The page...
3
by: LadyKnight | last post by:
I am trying to build a new personal homepage and decided to try using CSS for the first time. I came across some dashed underlines for links on this page (and several others): ...
29
by: jmaxsherkimer | last post by:
the site we're working on has some anchor links, you click them they scroll to the bottom of the page with the answers to the questions linked on to. is there anyway to make it so that the links...
10
by: Chris Sharman | last post by:
See http://services.ccagroup.co.uk/testlink.html It's valid html 4.01 transitional. It contains 6 links: A1-A3, and B1-B3. A is with no (default) style, B has "a img.nound { text-decoration:...
2
by: Jeff | last post by:
hey asp.net 2.0 I have a HyperLink control on my webpage, I want this HyperLink to display a underline when mouse is hovering over it. This is NOT a html link, but a...
1
NevadaSam
by: NevadaSam | last post by:
I want to use a dotted underline when I hover over a text link, but I don't want this to show up when I hover over a image link. Is there a way I can do this without calling a different class when I...
4
by: Mr. Newt | last post by:
Hi y'all, I'm looking to put an underline under some links but not under others. I still want an underline when the link is hovered over. I've dabbled with classes for this, but all I can get...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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...

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.