473,659 Members | 2,666 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 3809
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
9468
by: Paul Kaufman | last post by:
What do I add to the style sheet to do this? Thanks. -Paul, the CSS Newbie
8
14686
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 the text), because headings are block elements. Is there another way than using extra-markup like <div class="h1"><span>My heading</span></div>
3
5524
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 http://www.vonreeken.demon.nl/test/gifline1.htm shows, well if a 'Gecko' browser is used of course, that these browsers let the background of images inherit the text-decoration attribute of the containing anchor.
3
132537
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): http://www.mezzoblue.com/zengarden/resources/ How do you do this? It's not one of the defined text-decorations, so I'm not sure how to do it? You don't have to use dashed borders like you would in a table would you (i.e. somehow make a table around every...
29
49046
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 are not underlined when the page loads, when the user moves the mouse over it's underlined, mouse out no underline. i tried: <a href="#section14" class="drkblue08bold" style="text-decoration:none"> but that left the underline gone forever,...
10
9246
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: none; border: none; }". Link 1 is image + text - this has the problem - why is the image underlined ? How do I fix it ? Link 2 is just image - this is fine. Link 3 is just text - also fine.
2
7299
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 System.Web.UI.WebControls.HyperLink This is my CSS (which I use to set font size and remove the underline, but when mouse are hovering I want the link to display a underline):
1
16219
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 have an image link? <style type="text/css"> img { background-color:#FFFFFF; border: 1px solid #ff12fc; padding: 5px; margin: 5px 5px 0 0;
4
8513
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 is line or no line. Any help? Thanks.
0
8330
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8850
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8746
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8523
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8626
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
5649
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4175
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4334
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2749
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

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.