Hi David,
I don't know any other way to set column width for HTML table.
Maybe your solution is the most simplest way.
Regards,
--
Takayuki SHIMIZUKAWA
http://about.me/shimizukawa
2013/1/10 David Hoese <
dho...@gmail.com>:
> 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
sphinx...@googlegroups.com.
> To unsubscribe from this group, send email to
>
sphinx-users...@googlegroups.com.
> Visit this group at
http://groups.google.com/group/sphinx-users?hl=en.
>
>