how can use scss to encapsulate scrollx efects?

how can use scss to encapsulate scrollx efects?

kororokororo Posts: 2Questions: 2Answers: 0

Hi everyone, I have a problem with Scrollx, I'm using in along with fixedColums in order to create a table with multiple columns and I was using the next code to keep it working:

th, td {
white-space: nowrap;
}
div.dataTables_wrapper {
width: 99%;
margin: 0 auto;
}

But then I realize this is breaking other tables in my project, someone told me it´s posible to make a scss in order to keep encapsulate for only tables with scrollX.
How can I do that??

Answers

  • colincolin Posts: 15,237Questions: 1Answers: 2,598

    Hi @kororo ,

    We're happy to take a look, but as per the forum rules, please link to a test case - a test case that replicates the issue will ensure you'll get a quick and accurate response. Information on how to create a test case (if you aren't able to link to the page you are working on) is available here.

    Cheers,

    Colin

This discussion has been closed.