Field description text width

Discussions about Forms Designer for SharePoint 2013 / 2016 and Office 365.
Locked
User avatar
Adam Reyes
Posts: 35
Joined: Tue Mar 04, 2014

28 Jun 2017

Is there a way to decrease or control the width of the description text under the form fields? I can't seem to find a way to do it in forms designer and any CSS I use doesn't seem to work.

2017-06-28_14-51-52.jpg
2017-06-28_14-51-52.jpg (25.54 KiB) Viewed 3070 times

User avatar
Dmitry Kozlov
Site Admin
Posts: 1524
Joined: Thu Jun 07, 2012

29 Jun 2017

Please, insert the following code into CSS-editor:

Code: Select all

.fd_field .ms-metadata {
	color: red;
}

User avatar
Adam Reyes
Posts: 35
Joined: Tue Mar 04, 2014

29 Jun 2017

That just changes the color but it will not decrease the width of the text field description. It also seems to affect all the description fields and I just need it to affect just one field. I'm trying to decrease the description text down to a width of 100px

User avatar
Dmitry Kozlov
Site Admin
Posts: 1524
Joined: Thu Jun 07, 2012

30 Jun 2017

Hi Adam,

Please, try this:

Code: Select all

.fd_field[fd_name='FieldName'] .ms-metadata {
	width: 100px;
	display: block;
}
Replace 'FieldName' with the internal name of the field which description you want to adjust.

Locked
  • Information
  • Who is online

    Users browsing this forum: No registered users and 5 guests