Loading...

Field Descriptions – Spacing

Field Descriptions – Spacing

  • This topic is empty.
Viewing 3 reply threads
  • Author
    Posts
    • #7091
      Anonymous
      Anonymous
      Participant

      Hi

      n

      I can provide the workaround for this case:

      n

        n

      1. Drag a HTML Form Web Part into the page;
      2. n

      3. Make sure the page is under the edit page mode, click the “Source Editor” setting for the HTML Form Web Part, put the below code into the dialog, that will create a new style class, and this class will be used to affect the description style:
      4. n

      n

      <style>

      n

      .myClass{

      n

      position: absolute !important;

      n

      margin-top: -15px !important;

      n

      }

      n

      </style>

      n

        n

      1. Open the ezEdit for qListForm, apply this class for the field description, something like that:
      2. n

      n

      <span class="myClass">Description for this field</span>

      n

       

      n

      save the settings.

      n

       

      n

      Hope that can help you…

      n

       

      n

    • #7094
      Anonymous
      Anonymous
      Participant

      Thanks ,

      n

      So since a work around is required, would this be considered a bug?

      n

    • #4741
      Anonymous
      Anonymous
      Participant

      Is there any way field Descriptions can be tight against the bottom it corresponding field for all control types, not just text boxes?  If you look at the attached screenshot you can see a lot of white space under lookups and date controls.

      n

      There is actually more white space above the Description than under it and it is confusing as to which field the Description is for.

      n

      The default SharePoint forms handles this pretty well.

      n

      Thanks,

      n

    • #7095
      Anonymous
      Anonymous
      Participant

      Hi

      n

      I don’t think so, if you view the source code in the browser, you will see all the style of the descriptions are the same, they are suing the <br/> tag as a break line. But some of the controls are special, for example, the dropdown control is wrapping by a <span>. So you will see there are some difference with others.

      n

      Actually, you can write the CSS code into the description, something like: <span style=” position: absolute ; margin-top: -15px;”>[DESCRIPTION]</span>.

      n

       

      n

Viewing 3 reply threads

You must be logged in to reply to this topic.