Roger6240907
Posts: 0
Joined: Mon Sep 16, 2013 5:33 pm

how to center icon on notext button?

I was able to increase the size of notext button with
code
.bigbutton{
height: 40px;
width:40px;
}
/code

but the icon is not centered as you can see from the attached pic. How can I center it? Thanks
Image

Illya Stepanov
Posts: 0
Joined: Mon Mar 18, 2013 8:48 am

how to center icon on notext button?

Hi Roger,

What component you are using?

Illya Stepanov
Posts: 0
Joined: Mon Mar 18, 2013 8:48 am

how to center icon on notext button?

If your are using a button component -- it's a standard jQuery component, reference is here.

Try to use:
pre
data-iconpos="notext"
/pre

Roger6240907
Posts: 0
Joined: Mon Sep 16, 2013 5:33 pm

how to center icon on notext button?

Hi Illya,
I"m already using a notext button (see title), what I want to do is make the button bigger. If I increase the size with the CSS above, the icon is not centered. At the end I want a big centered-icon notext button.

This is the button without the added CSS (regular notext) Image

Illya Stepanov
Posts: 0
Joined: Mon Mar 18, 2013 8:48 am

how to center icon on notext button?

Sorry didn't saw it first time Roger.

try to use: predata-iconpos="center"/pre

Roger6240907
Posts: 0
Joined: Mon Sep 16, 2013 5:33 pm

how to center icon on notext button?

How can I add that?
I try to add it as "add property" and also as CSS, but both don't work for me.

Kateryna Grynko
Posts: 0
Joined: Thu Nov 15, 2012 9:13 am

how to center icon on notext button?

Hi Roger,

Add the following CSS code to shift the icon:
precode.bigbutton .ui-icon{
margin: 10px 0px 0px 11px !important;
}/code/pre

Roger6240907
Posts: 0
Joined: Mon Sep 16, 2013 5:33 pm

how to center icon on notext button?

Thanks for the help, it is getting better but it is still not as it should. This is what I get in 4 scenarios with associated code:
case 1:
code
.bigbutton{
height: 30px;
width: 30px;
}
/code
Image

Case 2:
code
.bigbutton .ui-icon{
height: 30px;
width: 30px;
}
/code
Image

Case 3:
code
.bigbutton .ui-icon{
height: 30px;
width: 30px;
margin: 10px 0px 0px 11px !important;
}
/code
Image

Case 4:
code
.bigbutton .ui-icon{
height: 30px;
width: 30px;
margin: -4px 0px 0px 3px !important;
}
/code
Image

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

how to center icon on notext button?

Hello! Please try this code:
pre.bigbutton{
height: 40px;
width:40px;
}
.bigbutton .ui-icon{
margin: 10px 0px 0px 11px !important;
}/pre

Ghayas Khan
Posts: 0
Joined: Wed Oct 30, 2013 10:08 pm

how to center icon on notext button?

Hello all
I am building an interface for Andriod and want to deploy icons with functions.
Can you please guide me further
Thanks

Return to “Issues”