Wed, 18 Feb 2009 04:29:43 -0800, Glenn Hutchings wrote:

> Hi there Sphinx fans
> 
> Anyone got any idea how to make HTML tables centred without having to
> resort to:
> 
> .. raw:: html
> 
>    <center>
> 
> like I do at the moment?  I'm sure there must be a stylesheet tweak, but
> can't figure out what it would be.

_static/mystyle.css:
--------------------
@import "default.css";

table {
   text-align: center;
}
--------------------

or some similar CSS magic, and select the appropriate style 
sheet in conf.py:

conf.py:
--------------------
...
html_style = 'mystyle.css'
...
--------------------

-- 
Pauli Virtanen


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

Reply via email to