EasyUI Forum
April 26, 2024, 10:13:49 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Linkbutton align when width set to 100%  (Read 4337 times)
sky-t
Full Member
***
Posts: 145


View Profile
« 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
Logged
stworthy
Administrator
Hero Member
*****
Posts: 3581


View Profile Email
« Reply #1 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>
Logged
sky-t
Full Member
***
Posts: 145


View Profile
« Reply #2 on: December 04, 2016, 03:23:35 AM »

That works!
Thank you very much!!!
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!