1

Does anybody know how to edit vertical alignment in a table in SharePoint?

In the example below, Compare erstellen and Concur are aligned to the middle of the cell, but I want them aligned to the top of the cell. This is a simple option in Excel etc., but I can't find out how to do it in SharePoint.

Oddly, in some tables the text is automatically aligning to the top, but in others it aligns to the middle, and so for consistency I need to be able to edit it, but can't see any option to do that, only to change the horizontal alignment

enter image description here

2
  • Where you are updating it? in SharePoint Modern site page? Commented Jun 17, 2021 at 7:57
  • This is on any sharepoint page where I have added a table to the text web part
    – user333007
    Commented Jun 17, 2021 at 10:41

3 Answers 3

1

If you are trying to do this in SharePoint online modern page. Where you have added a table in Text web part, there is no option to set the vertical alignment.

Currently, you can only align it to left, center or right (horizontally). I even tried copy pasting the table from word document & excel. But when pasting it on SharePoint page, SharePoint automatically aligns it vertically middle position.

enter image description here

Documentation: Add text and tables to your page with the Text web part


If you are trying to do this in office online excel file, here are the alignment options:

enter image description here

1

pressing the return key and making some line feeds will move the text upwards and take care of the problem!

0

Try JSON formatting like:

{
  "elmType": "div",
  "txtContent": "@currentField",
  "style": {
    "vertical-align": "top"
  }
}

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.