Monospaced font not working

+6 votes
190 views

WikiTree has a CSS file that resets some of the default formatting of most HTML elements: http://www.wikitree.com/css/base.css

The first rule includes

code, tt { font: inherit }

which are never overridden.  This means the <code> and <tt> elements don't work — or at least they don't cause a monospaced font to be used.    Class marks and reference codes, especially when they're not just numeric, look much better formatted in a monospaced font, and at the moment this is painful to achieve.  Instead of writing <tt>RG12/911</tt>, you need something like

<span style="font-family: monospace">RG12/911</span>

which is verbose and hardly intuitive if you're not familiar with the details of HTML and CSS.  This could easily be fixed by appending the correct default (per the CSS 2.1 spec) to base.css.

code, tt { font-family: monospace }
in WikiTree Tech by Anonymous Anonymous G2G1 (1.9k points)
retagged by Keith Hathaway

1 Answer

+5 votes

Recently, after much discussion in G2G, the decision was made that using html and inline CSS on profiles was going to be, except for some recommended tags, not recommended. This is largely a reflection that not all users are conversant in html and css and may be intimidated away from contributing to profiles when they see a lot of code they are not familiar with; the other large issue is to limit disputes over aesthetics styling which can be very difficult to resolve.

Therefore the first issue to broach is if <tt> should be included in the list of recommended tags... If the community supports its inclusion as a recommended tag, then the CSS should obviously be changed, otherwise it would seem there isn't much point.

Personally, i don't see a reason not to include <tt> on the recommended tags, but I am also reasonably well versed in HTML and may not be an objective judge.

by Rob Ton G2G6 Pilot (295k points)
I certainly agree with not recommending inline CSS and restricting HTML usage to a few recommended tags.  However I think there is a case for including <tt> in the list of recommended tags for the reasons I gave.  It's no more complex than any of the other recommended tags, and allows you to do something you cannot achieve with out it.  Alternatively, we could add a template, say Template:id, that simply does <tt>{{{1}}}</tt> for handling document identifiers, class marks, and such like.  Then that becomes are accepted use, and direct use of <tt> remains not recommended.  (And if it's too difficult to get base.css fixed, the template could be made to use inline CSS.)
Thanks, Rob and Richard.

If you do want to make a case for <tt> being recommended, maybe ask that as a new question and explain when it should be used.

In other words, what style rule would call for it?

Chris, The main use case is pretty much what I said above.  Class marks and reference codes, especially when they're not just numeric, look much better formatted in a monospaced font.  E.g.

1901 Census of England, Hampshire, Fawley, folio 22, page 8, George Smith; <tt>RG13/911</tt>, The National Archives, Kew, Surey, UK.  Digital images on Ancestry.com.

How do I make sure this thread doesn't get forgotten?

Related questions

+5 votes
2 answers
319 views asked Nov 14, 2014 in Policy and Style by Living Jones G2G5 (5.1k points)
+5 votes
0 answers
327 views asked Jan 22, 2015 in Policy and Style by Mary Richardson G2G6 Mach 4 (46.3k points)
+2 votes
1 answer
121 views asked May 24, 2014 in WikiTree Tech by Philip van der Walt G2G6 Pilot (174k points)
+2 votes
0 answers
216 views asked Jul 27, 2023 in WikiTree Tech by Siegfried Keim G2G6 Mach 6 (64.3k points)
+4 votes
1 answer
241 views asked Oct 10, 2018 in WikiTree Help by Judy Bramlage G2G6 Pilot (220k points)
+12 votes
1 answer
+32 votes
14 answers
1.4k views asked Feb 9, 2015 in Policy and Style by Chris Whitten G2G Astronaut (1.5m points)
+19 votes
6 answers
2.8k views asked Nov 28, 2014 in Policy and Style by Chris Whitten G2G Astronaut (1.5m points)

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

disclaimer - terms - copyright

...