EasyUI Forum

General Category => EasyUI for jQuery => Topic started by: sky-t on December 04, 2016, 02:04:59 AM



Title: Linkbutton align when width set to 100%
Post by: sky-t on December 04, 2016, 02:04:59 AM
Hi there,

when i use a linkbutton and set the width of this button to 100% the icon and text are centered on this button.
I want to have them left aligned - so what can i do?


Thank you very much


Title: Re: Linkbutton align when width set to 100%
Post by: stworthy on December 04, 2016, 02:33:19 AM
Please set the 'text-align:left' style to the linkbutton.
Code:
<a id="b1" href="#" class="easyui-linkbutton" data-options="iconCls:'icon-add'" style="width:300px;text-align:left">Add</a>


Title: Re: Linkbutton align when width set to 100%
Post by: sky-t on December 04, 2016, 03:23:35 AM
That works!
Thank you very much!!!