I noticed today that html tables (at least from the default theme) don't 
have a specific width. The "colgroup" elements that set the column widths 
as a percentage for every html table give undefined behavior when this 
happens, at least that's what I'm seeing in firefox and chrome. My 
documentation that I noticed this in had 2 tables, both with 2 columns, but 
the column width percentages were different and when I looked at the html 
page in firefox and in chrome one table is slightly bigger than the content 
and the other stretches the entire page width.  Is this intended behavior? 
Would it be better for docutils to specify a width for the table?

My fix was that I redefined the "docutils" table class from basic.css in my 
own source/_static/tables.css with a 50% width and then added the style 
sheet in a setup function in conf.py.  Is this the simplest, as in fewest 
number of lines, fix for this? Or is there some ReST directive or similar 
that lets me add style to the tables?

Thanks.

-- 
You received this message because you are subscribed to the Google Groups 
"sphinx-users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
Visit this group at http://groups.google.com/group/sphinx-users?hl=en.


Reply via email to