How do I change spacing to single?

+1 vote
119 views
For an inscription on a powder horn, I wanted to center the type, so used this:

<div class="center" style="width: auto; margin-left: auto; margin-right: auto;">Amos Mead
Surgn of ye 3rd Conn Reg
Ticonderoga October 1759</div>

The problem is that it displays double spaced.  I would prefer single spacing.  Is there a way to do this?

Thank you in advance to the technical wizards.
WikiTree profile: Amos Mead
in WikiTree Tech by Cynthia B G2G6 Pilot (127k points)

1 Answer

0 votes

There are a few ways to do this but here are two:

Option 1 - use <pre> tags inside the <div> tags. You cannot apply formatting inside <pre> tags, for example to change the font colour of a word.

Option 2 - use <br /> tags where you wish a newline instead of hitting the enter/return key.

To illustrate:

Option 1: <div class="center" style="width: auto; margin-left: auto; margin-right: auto;"><pre>Amos Mead
Surgn of ye 3rd Conn Reg
Ticonderoga October 1759</pre></div>

Option 2: <div class="center" style="width: auto; margin-left: auto; margin-right: auto;">Amos Mead<br />Surgn of ye 3rd Conn Reg<br />Ticonderoga October 1759</div>

by Rob Ton G2G6 Pilot (274k points)

Thank you, Thank you!  Wizard of the software, Wiki linguist, and wise one.  Both ways work like charms.  Much appreciated.cheeky

One difference did show up, not in the preview, but in the public view, (they display differently). The first method wrapped the lines.  The second choice maintains the three separate line breaks.  So I used the second one after all. 

I have no idea whether this is interesting to you or not.  It is probably something you already know, since you are the wizard. smiley

Related questions

+5 votes
1 answer
+3 votes
2 answers
+3 votes
1 answer
57 views asked Dec 31, 2019 in The Tree House by anonymous G2G6 Pilot (127k points)
0 votes
1 answer
+1 vote
1 answer
64 views asked Jun 18, 2019 in WikiTree Help by Barbara Mead G2G6 (7.6k points)
+2 votes
1 answer
82 views asked May 12, 2019 in Genealogy Help by Vance Mead G2G1 (1.5k points)
+2 votes
0 answers
103 views asked May 12, 2019 in Genealogy Help by Vance Mead G2G1 (1.5k points)
+5 votes
4 answers
+1 vote
1 answer
51 views asked Apr 20, 2019 in The Tree House by Jerry Mead G2G4 (4.6k points)

WikiTree  ~  About  ~  Help Help  ~  Search Person Search  ~  Surname:

disclaimer - terms - copyright

...