SharePoint – changing a single-line text field’s width using CSS

When creating a custom NewForm.aspx or EditForm.aspx in SharePoint containing single-line text fields, you cannot normally change their width. It is fixed in the system CSS, which can be overridden by specifying the same style with the desired width. Insert the following into your NewForm.aspx or EditForm.aspx:

Instructions for changing the width of single-line text fields in NewForm.aspx and EditForm.aspx.

.ms-long{width:100px;}

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.