Forum Feature requests

height: autoline

jim_albright
I now insert a graphic img with height: auto

I would like a feature that will have height: autoline

Meaning: insert and size graphic to fill column width and then add padding above/below to make graphic height equal to a multiple of the line height.

So image height plus padding above plus padding below would equal a multiple of line height ... if line height is 13pt it would be
...
117pt
130pt
143pt
156pt

Jim Albright
Wycliffe Bible Translators

mikeday
You can achieve this for inline images on lines using line-stacking-strategy: grid-height, but it won't help for blocks unfortunately.
oliof
That includes tables, right?

I'm constantly fighting tables with some line decoration to to register with other lines. It simply seems impossible at the moment. Right?
jim_albright
The user wanted to be able to specify graphic width in cm. So I now have added to XSLT the conversion from pixels to height in lines.

I start with width and height of graphic in pixels and desired width in cm.
I'm glad to share method to anyone interested. I round to nearest line.

Still want something in CSS to make sure that registration is correct.

Jim Albright
Wycliffe Bible Translators