Wikipedia:Reference desk/Archives/Computing/2019 August 10

= August 10 =

HTML tables
Some time ago I spent a lot of time updating Routemap, but there's still an issue which has been irritating me for a while.

In HTML, is there a way to put a bunch of divs containing images in a row without allowing any line breaks between or within the divs, if the size of the content of the divs and the number of divs cannot be used?

Currently the Lua module uses nested tables for aligning images and preventing rows from wrapping. This is not very good for accessibility, though it's not that big of an issue (yet) since there are still various other ways that the diagrams are inaccessible. Jc86035 (talk) 17:23, 10 August 2019 (UTC)
 * Did you try to set "display:inline-block"? Ruslik_ Zero 09:36, 11 August 2019 (UTC)
 * I've just tested that. While this does seem to work for the images, the main issue seems to be that text placement within diagrams seems to be consistently off and messes with the alignment of the images; you can see the effects in Template:Routemap/testcases (as well as the example diagrams in Template:Routemap/sandbox). Jc86035 (talk) 11:06, 11 August 2019 (UTC)
 * There's also a strange (and seemingly unrelated) alignment issue for the infobox diagram between Mong Kok East and Hung Hom stations. Jc86035 (talk) 11:08, 11 August 2019 (UTC)
 * Looking at the testcases I do not see anything wrong in them. You would better ask at Village pump (technical). Ruslik_ Zero 10:05, 14 August 2019 (UTC)