KoolReport's Forum

Official Support Area, Q&As, Discussions, Suggestions and Bug reports.
Forum's Guidelines

Position a Summary Table at the Center #2505

Closed hsw opened this topic on on Dec 21, 2021 - 2 comments

hsw commented on Dec 21, 2021

Hi,

I have a report with Tables and Charts. I need to output a Summary Table (with only 4 columns) at the beginning of the report. How do I position the Summary Table at the center, instead of occupying the full width?

Thank you.

Sebastian Morales commented on Dec 21, 2021

Pls put your Table/DataTables widget in a div with style width:auto, margin-left:auto, margin-right:auto, i.e horizontally centering the div.

hsw commented on Dec 22, 2021

Got it! Included this and it works. Thank you.

<div style="width:600px; margin-left:auto; margin-right:auto">
        <?php
    	    Table::create(array(
            "dataStore"=>$this->dataStore('myDatastore')))
        ?>
</div>

Build Your Excellent Data Report

Let KoolReport help you to make great reports. It's free & open-source released under MIT license.

Download KoolReport View demo
help needed
solved

None