Right align text in a plain text field?
Good morning..
I've searched around the forum looking for the answer to how to right align text in a plain text field on a form.
I've tried to use css and define a class and to just enter "text-align: right" in the style field of the control... neither seemed to work.
Can someone shed some light on how I can do this?
thanks!
I've searched around the forum looking for the answer to how to right align text in a plain text field on a form.
I've tried to use css and define a class and to just enter "text-align: right" in the style field of the control... neither seemed to work.
Can someone shed some light on how I can do this?
thanks!
- Nikita Kurguzov
- Posts: 889
- Joined: Mon Jul 03, 2017
Dear tharais,
The code depends on the type of the Plain text field - is it Single Line or Multiple Lines?
First, give the field a CSS class, like this: Then, add the following code to CSS editor for Single Line:
Or the following code for Multiple Lines:
Here's what I get in the browser with this code:
The code depends on the type of the Plain text field - is it Single Line or Multiple Lines?
First, give the field a CSS class, like this: Then, add the following code to CSS editor for Single Line:
Code: Select all
.signleline input{
text-align: right;
}
Code: Select all
.multiline textarea{
text-align: right;
}
Cheers
- Nikita Kurguzov
- Posts: 889
- Joined: Mon Jul 03, 2017
Dear TJ,
Okay I see. The easiest option would be to add a Table control to the form. Then you can simply move Plain Text control to the right side of all the fields: P.S. You can also add padding to the left.
Okay I see. The easiest option would be to add a Table control to the form. Then you can simply move Plain Text control to the right side of all the fields: P.S. You can also add padding to the left.
Cheers
-
- Information
-
Who is online
Users browsing this forum: No registered users and 11 guests