Width of "dataTable no-footer" (1321px) exceeds the width of its container (920px)

Width of "dataTable no-footer" (1321px) exceeds the width of its container (920px)

newDTUsernewDTUser Posts: 1Questions: 1Answers: 0
edited February 2020 in Free community support

My dataTable has a width of 1321, my container which holds the dataTable has a max-width of 920px.

Why does it exceed its width limit, how can I prevent that? Manually overwrite the width has no affect on the width.

Edit: It only happens on some result (I built a search), sometimes the width is okay.

Thank you!

Answers

  • colincolin Posts: 15,118Questions: 1Answers: 2,583

    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

  • ejobityejobity Posts: 7Questions: 2Answers: 0
    edited April 2020

    Some solutions:
    In the table tag remove the class nowrap.
    Also make sure all your css in your header are importing properly.

This discussion has been closed.