XPost: comp.infosystems.www.authoring.stylesheets
On 2023-10-01 18:55, Stan Brown wrote:
On Sun, 1 Oct 2023 21:16:27 +0000, Robert Prins wrote:
<https://prino.neocities.org/@temp/$marty/new.html>
My "problem" is that in "new.html" the text after the third picture is
shifted to the left, and I cannot figure out why this is happening, so if
anyone here has any clues, please share them! >
A run through the w3c validator shows numerous nesting errors. (There
are also a lot of errors and warnings about obsolete things, but I
know you plan to take care of those.)
<https://validator.w3.org/nu/?doc=https%3A%2F%2Fprino.neocities.org% 2F%40temp%2F%24marty%2Fnew>
Old,
<
https://prino.neocities.org/@temp/$marty/old.html>,
and
new,
<
https://prino.neocities.org/@temp/$marty/new.html>
now match 99.999%, I've got a tiny, no pun intended, problem with the size="2" font, size=2 and font-size: 81.0% are obviously not the same, but life's way too
short to figure out the decimals.
The new.html now validates without errors on <
https://validator.w3.org/nu/>, the
old.html validation results in 380 messages, most, 372, about obsolete elements and attributes, I've manually removed the ones that caused the nesting errors.
I've also written a small REXX exec, just 72 lines of code, that almost converts
the next file from the old "legacy-html" to html5, but here I've run into a snag
that I cannot explain...
So I added a bit of temporary CSS to show the table borders, and then had a look
at the "new.html" in FF's Inspector window. Much to my surprise, the computed table-width is 625.133px (where the CSS specifies 400px), and its contents only start moving one the width goes over 626px. (The inspector doesn't tell me anything about "old.html", which is a bummer...)
So here is the first question,
*** "Where does the calculated width of 625.133px come from?" ***
The table contains only pure text, and I would have expected that too long lines
would simply wrap to the next line, but apparently not...
Robert
--
Robert AH Prins
robert(a)prino(d)org
The hitchhiking grandfather -
https://prino.neocities.org/
Some REXX code for use on z/OS -
https://prino.neocities.org/zOS/zOS-Tools.html
--- SoupGate-Win32 v1.05
* Origin: fsxNet Usenet Gateway (21:1/5)