Placing scroll in a table so that it does not cross the limits of the window size

Asked

Viewed 7,397 times

0

I have a table that has many columns. I want it to be at most the size of the window. The problem is that it passes the window. How to place a scrool if the content moves the window size horizontally?

1 answer

2


This can be done through the css property overflow.

To div where your table is must own these property

max-width: 100%;
overflow: scroll

As in this example: https://jsfiddle.net/SamirChaves/fs5xuye3/

Any problems, just let me know.

  • your code should work in my application. I use the Sb-admin 2 template.... I don’t know why not apply table resizing. I would have some more idea?

  • You could put a print of your application so I can take a look?

  • I solved the problem by applying to a div around the table. I don’t know why the table won’t accept.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.