Overflow-y is leaving a blank space in the table width

0

Hello.

I'm trying to get my table to have a scroll, like this:

<table ng-if="vm.model.id" width="100%" class="table table-striped table-bordered table-hover dataTable no-footer" style="width: 100%; height: 350px; overflow-y: auto; display: block">

However, there is always a large white space on the right side before scrolling.

Does anyone know anything I can try not to have this problem anymore?

Thank you.

    
asked by anonymous 23.08.2017 / 14:29

1 answer

0

What happens is that you applied the display block to a table, I recommend that you wrap the table in a div and apply the overflow to it.

    
28.08.2017 / 22:19