Questions tagged [text-decorations]

a CSS property to set the element's text formatting to underline, overline, line-through, or blink

a CSS property to set the element's text formatting to underline, overline, line-through, or blink

155 questions
103
votes
6 answers

How to remove only underline from a:before?

I have a set of styled links using the :before to apply an arrow. It looks good in all browser, but when I apply the underline to the link, I don't want to have underline on the :before part (the arrow). See jsfiddle for example:…
OptimusCrime
  • 13,936
  • 12
  • 52
  • 91
96
votes
4 answers

CSS text-decoration underline color

Possible Duplicate: Changing Underline color It's possible to change only line color which is under text? I would like to see something like red letters with a blue line below it, but I can't find out how to get this done.
Wizard
  • 9,737
  • 35
  • 78
  • 151
45
votes
14 answers

Text-decoration: none not working

Totally baffled! I've tried rewriting the text-decoration: none line several different ways. I also managed to re-size the text by targeting it but the text-decoration: none code will not take. Help much appreciated. Code .widget { …
Olly F
  • 2,569
  • 9
  • 28
  • 34
35
votes
6 answers

How do I get this CSS text-decoration override to work?

Some days I swear I'm going mad. This is one of those days. I thought my CSS was fairly straight-forward here, but it just doesn't seem to be working. What am I missing? My CSS looks like this: ul > li { text-decoration: none; } ul > li.u { …
soapergem
  • 7,597
  • 16
  • 79
  • 124
13
votes
4 answers

Inherited Text-Decoration style

How would I negate or remove a parents text-decoration style? For example in the following, both the text and the anchor have a text-decoration of line-through, is there a way to not have that applied to the anchor tag?
JPero
  • 992
  • 13
  • 21
12
votes
2 answers

CSS multiple text-decoration

I want to have the

underlined and blinking at the same time. Is there any way to achieve this modifying only the CSS style of

? For instance: h2 { text-decoration: underline, blink; } or h2 { text-decoration: underline; …

zakkak
  • 1,670
  • 18
  • 26
12
votes
1 answer

Dotted underlines don't render properly in Chrome

Using Chrome 65, it looks like the text-decoration: underline dotted; yields an unelegant result : Whereas on Firefox, i'm getting the expected outcome : What's wrong with chrome ? I expanded the snippet with a further test. It seems to only fail…
Brachamul
  • 1,449
  • 2
  • 13
  • 30
12
votes
3 answers

Remove underline of dynamic hyperlink in WPF

I create WPF application. In some form user change selected text of richtextbox to hyperlink. I search more than a hour and look for solution. But can't. My dynamic hyperlink is created as follow: var textRange =…
Elvin Mammadov
  • 17,572
  • 9
  • 34
  • 76
11
votes
6 answers

Blue lines under links on my site even though I've disabled all related CSS?

I've tried disabled text-decoration, outlines, borders, and everything else I can think of. Using the inspect tool I cannot find anything that would cause these blue lines. This issue does not affect Firefox. The text with the blue underline is a…
Brandon Wamboldt
  • 15,241
  • 11
  • 49
  • 82
11
votes
5 answers

adding text decorations to console output

I have a c# .net 3.5 application that writes text to the console using a StreamWriter. Is there a way I can add text decorations like underline and strikethrough to the text that is printed to the console? Possibly using ANSI escape…
PaulH
  • 7,467
  • 7
  • 63
  • 133
11
votes
1 answer

Why does display: inline-block; remove an underline from a child element?

Recently I answered a question and the OP wanted text-decoration: underline; for the entire text wrapped inside the a element, but not the one wrapped inside span, so it was something like this Not UnderlineShould Be…
Mr. Alien
  • 140,764
  • 31
  • 277
  • 265
9
votes
2 answers

How to change TextDecoration color in WPF TextBlock?

I am changing the color of the TextDecoration this way:
Dinesh balan
  • 485
  • 4
  • 15
8
votes
4 answers

How to clear line-through for an element in a table row?

I'm having trouble "clearing" a line-through that I'm using on a table row. I don't want the line-through effect on the link. I'm changing the tr class dynamically with Javascript so I would like to keep it as simple as possible. My current…
frapser
  • 83
  • 1
  • 1
  • 3
8
votes
2 answers

How to get rid of underline on inside tag with hover?

fiddle HTML CSS a { text-decoration: none; } a:hover { text-decoration: underline; } a:hover span { text-decoration: none; } span { background-color: red; …
mpen
  • 237,624
  • 230
  • 766
  • 1,119
8
votes
3 answers

unable to get multiple values for text-decoration shown

Something weird - I'm trying to get a simpel HTML file to show both underline & overline (but it also happens on the "line-through" value) for a text (writing this in a separate CSS file) but on any of the browsers I'm checking it doesn't work (I've…
GrizzlyMcBear
  • 304
  • 1
  • 14
1
2 3
10 11