td width peculiarity

Giganews Newsgroups
Subject: td width peculiarity
Posted by:  emf (emfr…
Date: Sat, 28 Jan 2017

In my webpage

I arrived empirically to

td#panel { width: 24em; }


to specify the width of the empty panel in which the output is printed.
I use monospace font and the line of the output is actually 39 ems, not
24. If, however, I specify width: 39em; the panel becomes much wider. I
am programming in Firefox, it checks OK in Chrome, but I am not sure if
it works the same in all other browsers.

There are other ways to specify the width in html and in js (where 39
  bring the expected effect). But why do I need 24em in CSS, and
does it work the same in all browsers?



Natal Transits Calculator