0

How set align the text in button to left?

asked 2009-07-30 13:06:31 +0800

baskaraninfo gravatar image baskaraninfo
526 2 2 9

updated 2009-07-30 13:06:57 +0800

Text will be displayed as center aligned in the button as default. How can we align the text as left aligned?

Thanks.

delete flag offensive retag edit

2 Replies

Sort by ยป oldest newest

answered 2009-07-31 06:46:52 +0800

tomCat gravatar image tomCat
276 3

Hi baskaraninfo,

you can set the text align of your button with css.

example:

<zk>
<style>
  .myButton.z-button .z-button-cm{
	width : 100px;
	text-align:left; 
  }
</style>

<window title="MyButton Test" border="normal" width="200px">

	<button sclass="myButton" label="Test" />

</window>
</zk>

Hope that helps.

Best regards,
tomCat

link publish delete flag offensive edit

answered 2009-07-31 09:42:03 +0800

baskaraninfo gravatar image baskaraninfo
526 2 2 9

Thank you for your help, tomCat. :)

link publish delete flag offensive edit
Your reply
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools

Follow

RSS

Stats

Asked: 2009-07-30 13:06:31 +0800

Seen: 229 times

Last updated: Jul 31 '09

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More