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
11
votes
3 answers

Cufon: Underline Text

How can I underline a text replaced with Cufon?
Haris
  • 1,029
  • 3
  • 12
  • 26
11
votes
8 answers

Thick underline behind text

How to reproduce this sort of underline behind the text ABC using spans and css? I have been able to do underline below the text with nested span and colored border-bottom, but cannot get it behind the image and above the text base line.
exebook
  • 32,014
  • 33
  • 141
  • 226
11
votes
2 answers

Underlining Text in Python/Matplotlib

I couldn't find another thread or documentation on this topic - has anyone ever been successful underlining in pythons matplotlib package? The syntax I am using is something like this for all the other attributes: plt.text(0.05, 0.90, 'Parameters:…
nodapic
  • 315
  • 1
  • 4
  • 11
10
votes
4 answers

Change the color of the underline in android

I am developing the android application. I need to underline some of the Textview. SpannableString content = new SpannableString("Ack:"); content.setSpan(new UnderlineSpan(), 0, content.length(), 0); tvAck.setText(content);` I have used the above…
Kushal Shah
  • 1,303
  • 2
  • 17
  • 33
10
votes
7 answers

How do I print something underlined in Python?

print("hello") The output should be the word "hello", but underlined.
Ricky Su
  • 295
  • 1
  • 7
  • 10
10
votes
6 answers

Swift UIButton - How to remove underline?

I have problem when in iOS settings is enabled this setting "Button Shapes" It causing this underline in application (first picture with enabled setting, second without) Any idea how to programatically or in storyboard disable it? I tried…
user1085907
  • 1,009
  • 2
  • 16
  • 40
10
votes
7 answers

Is there a semantic version of ?

In XHTML Strict, it seems that you're not allowed to use the tag any more. Is there a semantic equivalent like there is for and ? If not, is there any convention for how to markup underlined text in XHTML? Thanks.
Philip Morton
  • 129,733
  • 38
  • 88
  • 97
10
votes
3 answers

Making label underline on mouse hover

I need to make label underline when I enter the label with my mouse. How can I do that? I tried few options but it didn't work. Can anyone tell me how to do that?
MarisP
  • 967
  • 2
  • 10
  • 24
9
votes
2 answers

What is “_ = variable” mean in sync/mutex.go

sync/mutex.go: func (m *Mutex) Unlock() { if race.Enabled { _ = m.state race.Release(unsafe.Pointer(m)) } ... what's the mean of _ = m.state? I know the var _ interface = Object mean check if Object implemented interface.
oohcode
  • 431
  • 2
  • 6
9
votes
5 answers

How to underline a Container Widget in Flutter

I am trying to underline a Container in my Flutter app. So far I achieved a some kind of underling when I used the following code: Container( child: Row( mainAxisAlignment: MainAxisAlignment.center, children:…
MeLean
  • 3,092
  • 6
  • 29
  • 43
9
votes
4 answers

Changing the color of EditText's underline

I have tried to change the underline color of my EditText with the help of this thread. I did the same thing - this is the EditText with the android:background set as @drawable/edt_bg_selector.
MoOoG
  • 293
  • 2
  • 5
  • 20
9
votes
1 answer

How do I tell linkify not to underline links?

Is there any way to tell linkify not to underline my links? I am already using textView.setLinkTextColor(stateList) to change the color, but I'd like to remove the underline that is inserts on the link. Is this even possible?
Ben
  • 16,124
  • 22
  • 77
  • 122
9
votes
4 answers

Spacing between text and underline

I am looking for a way to enlarge the distance between the text and underline on my pages. i use mainly CSS but i had to use tags as well, basicly my question considers both cases. is there a way to change this spacing? the code is pretty…
antonpuz
  • 3,256
  • 4
  • 25
  • 48
9
votes
1 answer

How do I underline text using FDPF in PHP?

I'm trying to make my text underlined in FPDF but it seems to be impossible... I'm not using HTML. I'm using an DejaVu unicode font, which supports UTF-8, and also its my first time working with the FPDF. Is that even possible? Please give me some…
Scott
  • 5,991
  • 15
  • 35
  • 42
8
votes
4 answers

CSS: Skip underline in part of link

Is it possible to have a contiguous link, where the text is normally underlined on mouse hover, but in the middle have a section (eg an image) without this underline? This does not work: one two
Biggles
  • 255
  • 1
  • 4
  • 7