line spacing update

  • 1
  • Problem
  • Updated 7 years ago
  • Solved
I have some unfortunate linespacing on some text and links on my website
(yeah, links, I know, how 90's)

As you say in the forum, pasting from unformatted text like notepad will fix some of the issues.

However, I don't want to re-enter all the links. Which disappear when reformatting. :(

for example here:
http://biochembio.com/
#########
proteins, genes, species search
try multiple synonyms, write out abbreviations
bio-active chemical compounds search
--try chemical search terms: USAN approved name, IUPAC name(s), or CAS #
###########
Photo of warreng.lewis

warreng.lewis

  • 3 Posts
  • 0 Reply Likes
  • silly

Posted 7 years ago

  • 1
Photo of Justine

Justine

  • 751 Posts
  • 45 Reply Likes
Hi Warren,

From what I understand, the default line spacing of the Text Widget is double-line spacing. If this is the case, you can hit the Shift+Enter keys together (Firefox and Internet Explorer) or Ctrl+Enter (Safari) to change the next line to single spacing in the next line.

If you would like to control the line height (spacing), a bit of HTML coding will need to be done. There are two options:

Option 1: Using CSS to control the line-height (this will apply to all your spacing throughout your page)

Drag over an HTML widget and paste in the following code:
<!-- <style type="text/css">
p { line-height: 100%; }
</style> -->

Remember to remove the <!-- and --> at the beginning and end of the code! You can replace "100" with a different value - this is what controls the spacing.

Option 2: Use HTML code (this will apply just to specific text or paragraph)

Drag over the HTML widget or use the HTML button on your text toolbar.
Paste in the following code:
<!-- <span style="line-height: 40px;">YOUR TEXT GOES IN HERE</span> -->

Remember to remove the <!-- and --> at the beginning and end of the code! You can replace "40" with a different value.

I hope this helps!
Photo of warreng.lewis

warreng.lewis

  • 3 Posts
  • 0 Reply Likes
I suppose learning HTML is inevitable...

I'll find a reference guide on html text formatting.