-
Hello. Is there any way to remove the padding inside a p-button. I want the text to be at the far left of the button. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 1 reply
-
If you share your code, will be easier to help you or share a stackblitz please. |
Beta Was this translation helpful? Give feedback.
-
Hi @angeasla! @SoyDiego is right. Different approach: You can use the styleClass property of p-button.
https://stackblitz.com/edit/vjkbkd?file=src%2Fapp%2Fdemo%2Fbutton-basic-demo.html |
Beta Was this translation helpful? Give feedback.
-
Ah yes, If you are using primeflex, you can do that. |
Beta Was this translation helpful? Give feedback.
Thank you and @SoyDiego for your immediate responses. I've done it by just adding 'pl-0' in 'styleClass' like this: