Way to change text alignment in the list view

jobywalker
Giga Contributor

When displaying data in the list view there doesn't seem to be a way to manage the left/center/right alignment of fields -- it is just based on the field type.  This can result in some very odd results when there is a numeric type of field (right aligned) mixed with other fields (left aligned).

Is there a way to control this?  sys_ui_style seems to only impact forms.

1 ACCEPTED SOLUTION

jobywalker
Giga Contributor

Thanks for the replies. Field Styles (sys_ui_style) is the correct answer but there a a bunch of caveats on this.

View solution in original post

9 REPLIES 9

Baala T
Mega Guru

Joby,

Checkout this link https://www.servicenowelite.com/blog/2013/11/24/custom-field-styles

Regards,
Bala T

Mark Roethof
Tera Patron
Tera Patron

Hi there,

You can just add text-align:right for example to the field styles. See examples below.

find_real_file.png

find_real_file.png

If my answer helped you in any way, please then mark it as helpful.

Kind regards,
Mark

---

LinkedIn

 

Kind regards,

 

Mark Roethof

Independent ServiceNow Consultant

10x ServiceNow MVP

---

 

~444 Articles, Blogs, Videos, Podcasts, Share projects - Experiences from the field

LinkedIn

Hi Mark,

Can you help me with this question??

https://community.servicenow.com/community?id=community_question&sys_id=3f237690db886c90190b1ea668961988

 

I feel its alignment of the data only but a different scenario.

 

Thanks,

Vaishnavi

Hi there,

It's not really related to this question. Though I did answer with a tested way in your mentioned topic.

If my answer helped you in any way, please then mark it as helpful.

Kind regards,
Mark
2020 ServiceNow Community MVP
2020 ServiceNow Developer MVP

---

LinkedIn
Community article list

 

Kind regards,

 

Mark Roethof

Independent ServiceNow Consultant

10x ServiceNow MVP

---

 

~444 Articles, Blogs, Videos, Podcasts, Share projects - Experiences from the field

LinkedIn