• Resolved spoxnr

    (@spoxnr)


    Hello, I have class no-datatable and no-responsive on. The table appears condensed towards the left side. How do I align the table center in the page? And perhaps, how can the columns expand to page width as well?

    Thank you

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author Meitar

    (@meitar)

    You can do this but it’s not part of the plugin; you need to edit your Theme’s stylesheet, just as you would need to do for any other kind of visual change to your site.

    Thread Starter spoxnr

    (@spoxnr)

    My theme has its own interface for this kind of stuff but what do I need to add to align center what the plugin outputs in the stylesheet?

    Plugin Author Meitar

    (@meitar)

    This plugin doesn’t touch any of your style sheets. You’ll need to learn some CSS to figure out the answer there; there are many resources for learning this online. I can’t do this for you. Good luck!

    Thread Starter spoxnr

    (@spoxnr)

    The text field the gdoc code snippet is in already has CSS style for center alignment. The plugin output is breaking the CSS style. It appears to me there must be special code to interact with the plugin output, and that’s basically what I am asking about.

    Plugin Author Meitar

    (@meitar)

    It appears to me there must be special code to interact with the plugin output, and that’s basically what I am asking about.

    Nope, no special code necessary. The plugin does include DataTables’s style sheets for things like a responsive mobile view, but I’m not aware of this touching anything to do with alignment. Might be worth turning them all off with a no-datatables value to the class attribute and seeing if there’s a difference in alignment, though I’d be surprised if there was.

    And, regardless, it’s all just standard CSS, so all your CSS skillz should apply. 🙂

    Thread Starter spoxnr

    (@spoxnr)

    I already have class set with no-datatables and no-responsive.

    I looked at your documentation and I put: .igsv-table {text-align: center;}
    but this doesn’t seem to hook in to the plugin output.

    Thread Starter spoxnr

    (@spoxnr)

    Disregard I’ve solved my problem.

    Disregard I’ve solved my problem.

    @spoxnr, Can you share what you did? i think i get the same problem. Thank you

Viewing 8 replies - 1 through 8 (of 8 total)

The topic ‘Align Center the table’ is closed to new replies.