EasyUI Forum

General Category => EasyUI for jQuery => Topic started by: bobee on October 04, 2012, 11:31:13 PM



Title: align datagrid table
Post by: bobee on October 04, 2012, 11:31:13 PM
hi all :D,

 i wanna ask how to center datagrid table inside a div ...
coz everytime i add align="center" to the div container ...
all datagrid headers gone  -.-

thx :D


Title: Re: align datagrid table
Post by: stworthy on October 05, 2012, 05:59:08 AM
Make a div in center of its container. Then place the datagrid in the inner div. The code looks like this.
Code:
<div class="container">
<div class="center">
<table class="easyui-datagrid" fit="true">
</table>
</div>
</div>


Title: Re: align datagrid table
Post by: bobee on October 05, 2012, 07:43:25 PM
thx gonna try that :D