vertical-align of text in multi-line table cells #283
-
Looks like the behaviour is currently to leave the browser default, which is "middle? and makes multi-line tables of data hard to read. For me, would be better if table cells had vertical-align set to top, what's the best way to achieve this? |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 3 replies
-
Are bumps frowned upon in this forum? |
Beta Was this translation helpful? Give feedback.
-
Bump ;-) |
Beta Was this translation helpful? Give feedback.
-
The browser-default vertical alignment (to the middle) seems to be consistent with most Sphinx-provided theme types. Although there looks to be an exception for the A workaround for this would be to configure a theme override, using the options (in
With the contents of
This should configure table alignments in the same style as the Users wanting to only apply this on a specific table may instead define the alignment on a specific class:
And add the class type into the table definition:
|
Beta Was this translation helpful? Give feedback.
-
Thanks! I think I did similar to work around this... I still think @pradyunsg would prefer to have this top-aligned in this theme. Like make browser/theme defaults, vertical center aligned on a multi-line cell is rarely what you want... |
Beta Was this translation helpful? Give feedback.
The browser-default vertical alignment (to the middle) seems to be consistent with most Sphinx-provided theme types. Although there looks to be an exception for the
haiku
theme. I assume it is just dealer's choice on the matter of which default alignment style is "right".A workaround for this would be to configure a theme override, using the options (in
conf.py
):With the contents of
_static/theme_overrides.css
to:This should configure table alignments in the same style as the
haiku
theme (although, I cannot say off hand if there are any implications of this on …