0

I have been using the following to increase the width of my text box on a custom form using SPD 2013.

 <style>
       textarea.ms-long{width: 400px;}
 </style>

What is the class / definition for a single line text box for a custom list form?

2 Answers 2

0

Single line text fields have "input" tags and not "textarea". So the style should be applied like this:

<style>
   input.ms-long{width: 400px;}
</style>

<!--apply the class "ms-long" to the input field-->
<input class="ms-long" id="yourID">
2
  • EXCELLENT! What is the tag for a drop down box?
    – Daryl
    Commented Nov 2, 2018 at 17:33
  • Tag for dropdown is <select>. But you need to put your options in the dropdown inside <option> tag . so the whole element becomes like this: <select id="ddr"> <option value="1">One</option> <option value="2">Two</option> <option value="3">Three</option> </select> Commented Nov 2, 2018 at 17:36
1

Try this

<style>

input.ms-long {
    width: 50px ! important;
}
</style>

Output

enter image description here

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.