Skip to content

vertical-align of text in multi-line table cells #283

Closed Answered by jdknight
cjw296 asked this question in Potential Issue
Discussion options

You must be logged in to vote

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):

html_static_path = ['_static']

def setup(app):
    app.add_css_file('theme_overrides.css')

With the contents of _static/theme_overrides.css to:

td {
    vertical-align: top;
}

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 …

Replies: 4 comments 3 replies

Comment options

You must be logged in to vote
2 replies
@pradyunsg
Comment options

@cjw296
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by pradyunsg
Comment options

You must be logged in to vote
2 replies
@pradyunsg
Comment options

@pradyunsg
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants