Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Centering the table #28

Open
chrisooo3 opened this issue Jan 4, 2021 · 0 comments
Open

Centering the table #28

chrisooo3 opened this issue Jan 4, 2021 · 0 comments

Comments

@chrisooo3
Copy link

How to center the table?
If I do this:
My html table looks like:

<div class="table-responsive">
  <table id="AdsTable" class="table" style="width: 100%">
    ...
  </table>
</div>

I use class table-responsive from bootstrap
My js looks like:

import ColumnResizer from "column-resizer";

let resizable = ColumnResizer;
new resizable(document.querySelector("#AdsTable"),{
    resizeMode: 'overflow',
    liveDrag:true,
    draggingClass:"rangeDrag",
    gripInnerHtml:"<div class='rangeGerip'></div>",
    minWidth:8
});

Css:

table {
margin: auto;
}

I get this(the cursor to resize the column is outside of the table
image

How to center the table and do not lose the ability to resize the columns?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant