Vertical alignment columns of text

Forum for all users to discuss the implementation and operation of the ChoralWiki at CPDL
Locked
BarryJ
Posts: 176
Joined: 03 May 2014 03:33
Location: Gunnison, Colorado, USA

Vertical alignment columns of text

Post by BarryJ »

There have been several comments on talk pages and in emails about vertical misalignment of columns of text, when using templates Text or Translation. You can see examples on any page that uses these templates in multiple columns, using the templates Top, Middle, and Bottom. (The templates Mdl and Btm redirect to Middle and Bottom.) (Changes are to make Valign="Baseline" in both Top and Middle)

I discovered a solution that correctly aligns the columns vertically, through test templates Top2 and Middle2. I hope you can see the difference in the following screenshot. Measurements are on my screen only, probably not yours. (Or see my test here)
TestMiddle2.png
Notice that when text only in the columns, there is no misalignment.
But the new templates Top and Middle cause 0.5 mm more vertical space from the header line either with Text templates or with just text.
Template Bottom does not need to be changed.

Would this be helpful?
Barry Johnston
Gunnison, U. S. A.
CHGiffen
Site Admin
Posts: 1781
Joined: 16 Sep 2005 21:22
Location: Hudson, Wisconsin, USA

Re: Vertical alignment columns of text

Post by CHGiffen »

Helpful, yes! The changes should definitely be made.
Charles H. Giffen
CPDL Board of Directors Chair
Admin at & Manager of ChoralWiki
BarryJ
Posts: 176
Joined: 03 May 2014 03:33
Location: Gunnison, Colorado, USA

Re: Vertical alignment columns of text

Post by BarryJ »

Templates {{Top}} and {{Middle}} have been changed. I also changed {{Translation}} because the flag was within the <big> tags, making its column taller.
Barry Johnston
Gunnison, U. S. A.
Richard Mix
Posts: 182
Joined: 31 Jan 2010 04:51

Re: Vertical alignment columns of text

Post by Richard Mix »

Looks great, Barry!
GerhardWeydt
Posts: 2
Joined: 02 Jun 2016 17:49

Re: Vertical alignment columns of text

Post by GerhardWeydt »

Thanks for amending this irritating behaviour.
Locked