Changing dataTables_scrollBody overflow

Changing dataTables_scrollBody overflow

RudyMtz7RudyMtz7 Posts: 1Questions: 1Answers: 0

I am trying to change the style of this div to have 'overflow: visible;". But since it has in line styles it is impossible for me to override it. Is there any way to change this in the table settings or to actually override it? Thanks.

Answers

  • colincolin Posts: 15,240Questions: 1Answers: 2,599

    Hi @RudyMtz7 ,

    We're happy to take a look, but it would help, as per the forum rules, if you could link to a running test case showing the issue so we can offer some help. 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

  • ngungongungo Posts: 64Questions: 23Answers: 2

    $('.dataTables_scrollBody').css({"overflow":"visible"});

  • allanallan Posts: 63,455Questions: 1Answers: 10,465 Site admin

    Add !important to your style and it will override the inline CSS:

    div.dataTables_scrollBody {
      overflow: visible !important;
    }
    

    Allan

This discussion has been closed.