Hi Brad, This is what I did when I had a similar issue.
In my custom CSS I have these classes: .width-25 { width: 25% !important; } .width-50 { width: 50% !important; } .width-75 { width: 75% !important; } I use list-table, so my RST looks like this .. cssclass:: width-50 .. list-table:: :header-rows: 1 :widths: 20 30 * - Field - Description IIRC, the cssclass directive applies to a div that encloses the table. --Philip Borenstein. On Monday, February 1, 2016 at 5:22:26 PM UTC-5, Brad wrote: > > Hi, > > I am trying to format tables in html documents generated through the > cvs-table directive in sphinx. > > My aim is to display a 'tight' table where each column width is only as > large as the maximum width of the entries in that column. > > I have tried adjusting various css properties of the table, but the result > is always 100% of the page width, with each column width being dictated by > 100%/num_columns or are proportional based on the :widths: attribute. > > Is there a way to alter the css to achieve my aim? > > Thank you for your help. > > Kind regards, > Brad > > > -- You received this message because you are subscribed to the Google Groups "sphinx-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to sphinx-users+unsubscr...@googlegroups.com. To post to this group, send email to sphinx-users@googlegroups.com. Visit this group at https://groups.google.com/group/sphinx-users. For more options, visit https://groups.google.com/d/optout.