“text-align” is a style that would need to be applied to the block-level element surrounding the text.
I would suggest placing a Block Panel control inside the Property Line and apply the “text-align” css style to the block panel control. Then place the text control inside the Block Panel and it should get styled as you specify.
I have a property line and given some text in property label to display on the screen and when it displaying on browser it is right aligned, i need left aligned , could you help me by providing the right css property display text on browser with left aligned.
If you are trying to change the alignment of the label of the property line, then you probably can’t do that with properties on the control since the label text is an child html element whose styling is being controlled by CSS.
You could probably affect the styling by providing an external CSS stylesheet in the page that has CSS styles that have higher specificity than the default styling rules to override those.
For example, set the “CSS class” property on the property line controls to “my-property-line”.
And then in an external CSS file, create CSS styles to apply styles for the elements that have that CSS class with something like this:
Right, that would change the styling for everywhere the portlet-form-field-label CSS class is used on your page. The suggestion I provided was a more surgical change that only applied the change to specific property line elements which is safer as you wouldn’t be changing the look and feel of other elements that aren’t designed to use a left aligned text.