You can add Css Classes to components by using the CssClassAppender Behavior. It has
constructors that either expect a String, a CssClass
or an IModel of a
CssClass. The CssClass is an interface that is implemented by many Enums that
provide
refactoring safe Css Classes.
Text alignment can be achieved by using the TextAlignment Enumeration.
label.add(new CssClassAppender(TextAlignment.JUSTIFY));
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere erat a ante.
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere erat a ante.