Forum Discussion

BarbBAC's avatar
BarbBAC
Copper Contributor
Jan 10, 2022

Vertical alignment in SharePoint table cells

Is there a way to set vertical alignment in SharePoint modern view table cells?

 

Issue is that when one cell has a lot of text, it expands the row vertically. Then all of the other cells on the row that have brief information are center-aligned vertically. It makes for awkward display and reading.  I would like to make a setting to vertically align all text to display at the top of the cell.

  • cgeissler's avatar
    cgeissler
    Copper Contributor
    I don't understand how this is not already a feature. We have recently started using SharePoint Online Modern Pages and use tables extensively for tabular data (not layout). It appears middle vertical alignment is the only choice? If you have cells with lots of text, then all the other cells in a row align to the middle of the tallest row. So you might need to scroll up and down to read a full row of data in context.

    This is really poor UI. Old School HTML used valign="top" and CSS uses vertical-align: top; but since Modern Pages don't seem to allow us mere mortals to edit HTML or add CSS, Microsoft's Sharepoint Team may need to solve this.
    • UX_Zorro's avatar
      UX_Zorro
      Copper Contributor

      Fully concur with cgeissler .

       

      Horrific UI.  Makes for a wretched display of information -- often barely usable.

      Vertical alignment is sorely needed.

       

      Compare with Atlassian's Confluence -- night & day.

  • rgpassey's avatar
    rgpassey
    Copper Contributor
    I have a hack-fix for this. Create a table in Microsoft Word. The cells are top justified by default, (go figure) so copy a cell, NOT the content in the cell, but the cell itself. Then paste that cell into a cell in a SharePoint table. The top-justified-ness will stick. Then copy that cell to the entire table, then you can fill in the table content, and it will all be top-justified. Keep in mind, if you add rows or columns, all the new cells will need to be copied over with the modified cells before putting in new content.
    • cgeissler's avatar
      cgeissler
      Copper Contributor

      rgpassey Yes this can be a work-around.  The downside is when you want to update the SharePoint table you might need

      1. to go back to Word,
      2. make changes to text/formatting then
      3. copy and paste the cell/table back into SharePoint to preserve the formatting.
      • rgpassey's avatar
        rgpassey
        Copper Contributor
        In my tests, if I only update the content, or even replace All the content, the formatting stays the same. It's only when the table cell is newly created, or perhaps copied over with another cell w/o the formatting, does the top-justified go away. If you are copying over an entire table, then yes, that can break it, and I would do what you suggest, but with the whole table. But with all minor textual changes, it stays good, so far as I've seen. Maybe you're seeing something different?

Resources