.. class:: scrollwide================== =================================================================col 1 col 2================== =================================================================entry 1 vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvery long entry 2entry 3 vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvery long entry 4entry 5 vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvery long entry 6================== =================================================================
def setup(app):app.add_stylesheet('scrollwide.css')
table.scrollwide {display: block;width: 400px;background-color: #E0;overflow: auto;}table.scrollwide td {white-space: nowrap;}
See also
<table border="1" class="scrollwide docutils"><colgroup><col width="22%" /><col width="78%" /></colgroup><thead valign="bottom"><tr class="row-odd"><th class="head">col 1</th><th class="head">col 2</th></tr></thead><tbody valign="top"><tr class="row-even"><td>entry 1</td><td>vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvery long entry 2</td></tr><tr class="row-odd"><td>entry 3</td><td>vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvery long entry 4</td></tr><tr class="row-even"><td>entry 5</td><td>vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvery long entry 6</td></tr></tbody></table>
Hi all, I'm pretty new to Sphinx, it looks great for my documentation purposes :-)I'm trying to insert a wide table, meaning that it exceeds the screen width and, most important, it is written over the sidebar. I wonder if it is possible to put a table in a frame just like code-blocks are (indeed code blocks are rendered in a scrollable frame).Thanksd