EasyUI Forum
May 16, 2024, 06:38:49 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Button - Same size  (Read 7454 times)
Pierre
Sr. Member
****
Posts: 439


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


View Profile Email
« Reply #1 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.
Logged
Pierre
Sr. Member
****
Posts: 439


View Profile Email
« Reply #2 on: April 09, 2014, 09:08:43 AM »

Thank you.
I meant more on single place where I can set something like minWidth="80px" ?
Logged
Pierre
Sr. Member
****
Posts: 439


View Profile Email
« Reply #3 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;
}
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!