locked
Edit and View Form - Modify width for specific fields RRS feed

  • Question

  • Hi again,

    I'm trying to change the default width of some fields in the Edit and View Forms.

    What I already got is to modify the width of text fields with this code:

    <style>
     .ms-long
       {
         Width: 500px !important;
       }
    
    </style>
    

    But now I need to modify the width of the "predecessors" input field...
    I know that the width info is here:

    <select title="Vorgänger mögliche Werte" id="Predecessors_c3a92d97-2b77-4a25-9698-3ab54874bc6f_SelectCandidate" style="width: 143px; height: 125px; overflow: scroll;" multiple="multiple">

    How can I adress that specific width here which is set to 143px?

    Thanks in advance!

    Sunday, July 22, 2018 11:59 AM

Answers

  • Ok.. writing this brought me to the right spot to search...

    Here is the solution I found here (Link)

    <style type="text/css">.ms-input select { width: auto !important; }</style>
    • Proposed as answer by Dennis Guo Monday, July 23, 2018 1:34 AM
    • Marked as answer by FlorianFloh Thursday, July 26, 2018 7:45 AM
    Sunday, July 22, 2018 12:03 PM

All replies

  • Ok.. writing this brought me to the right spot to search...

    Here is the solution I found here (Link)

    <style type="text/css">.ms-input select { width: auto !important; }</style>
    • Proposed as answer by Dennis Guo Monday, July 23, 2018 1:34 AM
    • Marked as answer by FlorianFloh Thursday, July 26, 2018 7:45 AM
    Sunday, July 22, 2018 12:03 PM
  • Hi,

    Glad to hear that you solve this issue, thanks for your sharing.

    I suggest you mark the reply as answer, it will make others who stuck with the similar issue easier to search for valid solutions in this forum.

    Best Regards,

    Dennis


    Please remember to mark the replies as answers if they helped. If you have feedback for TechNet Subscriber Support, contact tnmff@microsoft.com.


    Click here to learn more. Visit the dedicated forum to share, explore and talk to experts about Microsoft Teams.

    Thursday, July 26, 2018 7:35 AM
  • Done!
    Thursday, July 26, 2018 7:46 AM