Datatable style problem

Datatable style problem

msm_baltazarmsm_baltazar Posts: 59Questions: 22Answers: 0
edited January 2020 in Free community support

I am using datatable in my asp.net mvc project. I added 2 different styles to the table.

  <table id="surveyTable" class="table-striped table-bordered table-hover accent-blue" style="width: 100%">

first

the other is;

    <table id="surveyTable" class="table table-striped table-bordered table-hover accent-blue" style="width: 100%">

second

If I don't use the table tag, the rows are adjacent as I want, but the row height is very low.

If I use the table tag, the line height is nice, but the space between the buttons is too much. How can I fix this problem?

Answers

  • colincolin Posts: 15,142Questions: 1Answers: 2,586

    It looks like the space is only there because of the line wrap on the long text - would adding nowrap give you the look you want?

    Colin

  • msm_baltazarmsm_baltazar Posts: 59Questions: 22Answers: 0

    When I add nowrap to table as a class, the last column of table is being hidden. I dont want this.

  • colincolin Posts: 15,142Questions: 1Answers: 2,586

    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.