2

I have an InfoPath form that a user fills out and in one field they type an email address. The information is collected in a list. All of the columns but Email automatically aligns the standard way. The Email is showing top aligned. I attempted to modify the JSON for the column but it didn't work. Would love some advice please.

A picture is attached that will show what I'm referring to.

enter image description here

Thanks, Lisa

1
  • What is the data type of your Referral Email column? Can you please add the JSON code you tried to your question? Commented Jan 7, 2020 at 17:00

1 Answer 1

0

You could try the below json to change the vertical-align to middle:

{
  "$schema": "https://developer.microsoft.com/json-schemas/sp/v2/column-formatting.schema.json",
  "elmType": "div",
  "txtContent": "@currentField",
  "style": {
    "display": "table-cell",
    "text-align": "center",
    "vertical-align": "middle"
   }
}

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.