List View Column need to be aligned center not left/right

marskh111
Giga Contributor

Anyone know how I can align my list view to display as centered for some columns?

1 ACCEPTED SOLUTION

Chuck Tomasi
Tera Patron

Hi Kimberly,



Take a look at Field Styles.



Define field styles


View solution in original post

8 REPLIES 8

chennessy
Kilo Expert

I am having the same issue.


Chuck,   According to that link you posted earlier in this chain   , Define field styles the following is stated:


"Value The exact value or script-based-condition required to apply the style.


Note: The value only affects list field styles. To apply field styles on both lists and forms, leave this field blank."


I have "text-align: center" in the Style field, and I have left the Value field blank.   I want the field's value centered in both the form and the list view.


It works fine for the form; no luck for my list views.       Any ideas?


Thanks!


Hi Cheryl,



To the best of my knowledge, the only field style recognized on the list is background-color (which is represented as a circle in modern field coloring unless you turn that setting off in your preferences.)


Adrien
Tera Contributor

check this

 

How can we align text in list views to the center - Strategic Portfolio Management (SPM) - Question ...

 

Please try this.

 

1. Right Click on the Field in the form Layout.

2. Configure Styles.

3. Create a new style.

4. In the Value: javascript:1==1;

5. in the Style: text-align: center;

kemmy1
Tera Guru

Check out: https://community.servicenow.com/community?id=community_question&sys_id=a4a48fa9dbd8dbc01dcaf3231f9619ef