resize command button

Forum rules
Please note that response time for technical support is within 3-5 business days.
Post Reply
User avatar
afterbit
Posts: 100
Joined: 19 Mar 2012, 23:51
Contact:

12 Jul 2023, 16:27

i need to resize (make smaller..) a command button :

Code: Select all

<p:commandButton icon="fa fa-trash-o" title="delete item" />
I tried with style="font-size: 50%; width: 80%; height: 80%"

Code: Select all

<p:commandButton style="font-size: 50%; width: 80%; height: 80%" icon="fa fa-trash-o" title="delete item" />
but the result is not good..
how can i do?
thanks!

mert.sincan
Posts: 5281
Joined: 29 Jun 2013, 12:38

01 Aug 2023, 08:29

Hi,

Please try;

Code: Select all

<p:commandButton styleClass="MyButton" ...

Code: Select all

body .MyButton.ui-button,
body .MyButton.ui-button.ui-button-text-icon-left .ui-icon {
	font-size: 0.875rem;
}

body .MyButton.ui-button.ui-button-text-icon-left .ui-button-text {
	padding: 0.25rem .5rem 0.25rem 1.5rem;
}
Best Regards,


mert.sincan
Posts: 5281
Joined: 29 Jun 2013, 12:38

03 Aug 2023, 09:44

Resolved.

Post Reply

Return to “Verona - PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 13 guests