How to fit a large table on the page?

Posted in: Newspaper
Post count: 14

I have a table in the articles, which is more than the width of the page.
How do I scroll through the items to appear so that you can move the table horizontally.
Img

Post count: 1341

А что именно надо?

Чтобы сделать таблицу скроллируемую по горизонтали, надо:

Add a container element (like <div>) with overflow-x:auto around the <table> element to make it responsive:

См. “Responsive Table” (A responsive table will display a horizontal scroll bar if the screen is too small to display the full content): http://www.w3schools.com/css/css_table.asp

<div style="overflow-x:auto;">

<table>
... table content ...
</table>

</div>

Или: для этой страницы убрать правый сайдбар – освободится место для следующих ячеек.

Или: в свойствах таблицы прописать фиксированную ширину: 100%

<table ... style="width:100%">
	<tbody>
        ...
	</tbody>
</table>
Post count: 14

Спасибо.
С overflow уже и сам додумался, но получается не особо красиво.

Все лучше, чем было)

Viewing 3 posts - 1 through 3 (of 3 total)
The forum ‘Newspaper’ is closed to new topics and replies.