Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
0

Continuous Text Underline

Contributor ,
Jan 04, 2017 Jan 04, 2017

Copy link to clipboard

Copied

If I select a couple of works and then select Underline, it only underlines the individual letters. How can I have a continuous underline?

BTW I did a search but all the results were related to underlined links.
Thanks
Alan

Views

1.8K
Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Community Expert , Jan 04, 2017 Jan 04, 2017

Unless you're doing something exceptionally weird with your html, text-decoration:underline or the <u> tag will underline the entire word, or group of words, with a continuous line.

You may be having a display driver issue if the underline is only showing on individual letters.

How does it appear in each browser?

Votes

Translate
Community Expert ,
Jan 04, 2017 Jan 04, 2017

Copy link to clipboard

Copied

How are you adding the underline exactly?

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jan 04, 2017 Jan 04, 2017

Copy link to clipboard

Copied

If you absolutely must, use the CSS border property instead.

Incidentally, underlining text in HTML documents is highly discouraged as it implies the underlined text is a hyperlink to more content.   A web page is nothing like a printed page and vice versa.  They each have different presentation rules.

Nancy

Nancy O'Shea— Product User, Community Expert & Moderator

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jan 04, 2017 Jan 04, 2017

Copy link to clipboard

Copied

Unless you're doing something exceptionally weird with your html, text-decoration:underline or the <u> tag will underline the entire word, or group of words, with a continuous line.

You may be having a display driver issue if the underline is only showing on individual letters.

How does it appear in each browser?

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Contributor ,
Jan 04, 2017 Jan 04, 2017

Copy link to clipboard

Copied

LATEST

Yes that's what it was. I use underline to emphasize my chapter headings (I write stories and post the on a website? so there is no confusion as my stories don't contain links.

Thanks

Alan

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Jan 04, 2017 Jan 04, 2017

Copy link to clipboard

Copied

English100 wrote:

If I select a couple of works and then select Underline, it only underlines the individual letters. How can I have a continuous underline?

BTW I did a search but all the results were related to underlined links.
Thanks
Alan

Wrap the words in a <span></span> tag and then style it with css, example below:

<!DOCTYPE html>

<html>

<head>

<meta charset="UTF-8" />

<title>Underlined Words</title>

<style>

.underline_text {

padding: 0 0 2px 0;

border-bottom: 1px solid #000;

}

</style>

</head>

<body>

<p>This paragraph of <span class="underline_text">text contains a group of underlined</span> words</p>

</body>

</html>

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines