Questions tagged [underline]

An underline is a more or less horizontal line immediately below a portion of text. Generally, it is used to emphasize keywords or important passages. Not to be confused with "underscore", which is used for the character "_".

Underline in CSS

In CSS, underlining is created by setting the property "text-decoration" to "underline" (other line types, like strikethrough or overline, are also possible). The property "text-decoration-style" defines the appearance of the underline (e.g. solid, dotted, wavy). In CSS3, underline color can be defined by "text-decoration-color" to be different from the text color. For more information, see w3schools.com.

Underline in HTML

HTML has a presentational element <u> for underlined text. However, it was deprecated in HTML 4.01 in favor of CSS; in HTML5 it was redefined for text that should be "stylistically different" (cfr. w3schools.com).

Underline in Unicode

In Unicode, underline can be created by the combining diacritic "combining low line" (U+0332, "◌̲ ").

Underline in ASCII

In plain-text (ASCII) environments, underlining is often indicated by surrounding underscore characters, e.g. "This text is _underlined_."

596 questions
711
votes
22 answers

Remove blue underline from link

I am attempting to have a link show up in white, without an underline. The text color shows up correctly as white, but the blue underline is stubbornly persisting. I tried text-decoration: none; and text-decoration: none !important; in the CSS to…
dmr
  • 21,811
  • 37
  • 100
  • 138
518
votes
4 answers

CSS Box Shadow Bottom Only

How can I do this? I want my element to look as though it has a shadow underline. I don't want the shadow for the other 3 sides.
WillingLearner
  • 7,106
  • 6
  • 34
  • 51
485
votes
18 answers

How to increase the gap between text and underlining in CSS

Using CSS, when text has text-decoration:underline applied, is it possible to increase the distance between the text and the underline?
maxp
  • 24,209
  • 39
  • 123
  • 201
405
votes
15 answers

How to remove the underline for anchors(links)?

Is there anyway (in CSS) to avoid the underline for the text and links introduced in the page .. ?
Steven
  • 24,410
  • 42
  • 108
  • 130
339
votes
9 answers

Get underlined text with Markdown

How can I underline text in Markdown?
Peter
  • 3,399
  • 2
  • 16
  • 3
311
votes
13 answers

Flutter: how to make a TextField with HintText but no Underline?

This is what I'm trying to make: In the Flutter docs for Text Fields (https://flutter.io/text-input/) it says you can remove the underline by passing null to the decoration. However, that also gets rid of the hint text. I do not want any underline…
juan park
  • 3,224
  • 2
  • 10
  • 13
144
votes
11 answers

How do you underline a text in Android XML?

How do you underline a text in an XML file? I can't find an option in textStyle.
Michael Zeuner
  • 1,736
  • 3
  • 15
  • 23
131
votes
10 answers

To draw an Underline below the TextView in Android

I want to draw the underline below my TextView. I have searched a few content but couldn't find out anything fruitful. Can anyone please help me out here?
David Brown
  • 4,783
  • 17
  • 50
  • 75
128
votes
12 answers

Visual Studio Editor does not underline errors anymore

My Visual Studio (2008) Editor has stopped to underline Errors (this nifty wavy red lines). I can't really tell when, but it can be related to the installation of .Net Framework 3.5 SP 1 or the MVC Beta (which I guess is unlikely). Furthermore have…
Mats
  • 14,902
  • 33
  • 78
  • 110
125
votes
11 answers

How to Add a Dotted Underline Beneath HTML Text

How do you underline html text so that the line beneath the text is dotted rather than the standard underline? Preferably, I would like to do this without using a separate CSS file. I'm a novice at html.
parap
  • 1,844
  • 5
  • 19
  • 28
109
votes
13 answers

Remove underline from links in TextView - Android

I am using two textview to display links from database, I managed to change link colors but I want to remove the underline email.setText(c.getString(5)); website.setText(c.getString(6)); Linkify.addLinks(email, Linkify.ALL); …
Mohamed Ben Dhaou
  • 1,124
  • 2
  • 10
  • 16
94
votes
21 answers

Underline text in UIlabel

How can I underline a text that could be multiple lines of string? I find some people suggest UIWebView, but it is obviously too heavy a class for just text rendering. My thoughts was to figure out the start point and length of each string in each…
semix
  • 959
  • 1
  • 7
  • 4
71
votes
4 answers

WPF TextBlock Underline

I have a textblock of width say 500, but my string is just say "H" but I want to underline the whole textblock width not just under H what can I do?
user679530
  • 897
  • 1
  • 8
  • 11
71
votes
1 answer

Removing underline with href attribute

Possible Duplicate: How to remove the underline for anchors(links)? In the following code below, the link gets underlined when I use the href attribute. goto this link I want the link to be…
Victor Mukherjee
  • 10,487
  • 16
  • 54
  • 97
63
votes
9 answers

Control underline position on text-decoration: underline

Is there a way to control the position of the underline in text-decoration: underline? Example link The example above has an underline by default...is there a way to nudge that underline down by a few pixels so that there is more…
redconservatory
  • 21,438
  • 40
  • 120
  • 189
1
2 3
39 40