Don't want table across the entire page

Don't want table across the entire page

goldygoldy Posts: 20Questions: 11Answers: 0

Hey all.. I'm a n00b to datatables.. I have a three column table and it's stretching the fields across the entire page and it looks kind of ridiculous.
what the best way to make the table fit only over a certain part of the page. I don't want it stretched.

Thanks in advance
jg

Answers

  • mRendermRender Posts: 151Questions: 26Answers: 13

    <

    table id="yourtablename" class="display" cellspacing="0" width="50%">

  • mRendermRender Posts: 151Questions: 26Answers: 13

    Just set the table width when coding your html table :)

  • goldygoldy Posts: 20Questions: 11Answers: 0

    So, i'm doing everything from powershell an dusing datatables to create awesome tables, so I need to build a header and pass it through to powershell...

    And i'm not a js guy, but i've been crash coursing it with everyone's help...

This discussion has been closed.