EasyUI Forum

General Category => EasyUI for jQuery => Topic started by: Pierre on April 09, 2014, 04:37:08 AM



Title: Button - Same size
Post by: Pierre on April 09, 2014, 04:37:08 AM
Hi all
is it possible to define fixed button size (width) for all buttons?
If you take a look at the attached image, you can see that "Ok" button have smaller width as "Cancel" button.
I want that both buttons have same width.
Thanks.


Title: Re: Button - Same size
Post by: stworthy on April 09, 2014, 06:01:44 AM
Set a 'width' style to get a fixed width button. Please refer to this example http://www.jeasyui.com/demo/main/index.php?plugin=LinkButton&theme=default&dir=ltr&pitem=Basic.


Title: Re: Button - Same size
Post by: Pierre on April 09, 2014, 09:08:43 AM
Thank you.
I meant more on single place where I can set something like minWidth="80px" ?


Title: Re: Button - Same size
Post by: Pierre on April 19, 2014, 11:38:56 PM
I changed it on CSS, this works perfect:

.l-btn {
  background-position: right 0;
  text-decoration: none;
  display: inline-block;
  zoom: 1;
  height: 24px;
  padding-right: 18px;
  cursor: pointer;
  outline: none;
}