Forum Discussion
BarbBAC
Jan 10, 2022Copper Contributor
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.
- cgeisslerCopper ContributorI 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. - Bharath ArjaIron Contributor
BarbBAC There is a request for this change in SharePoint feedback portal https://feedbackportal.microsoft.com/feedback/idea/7e60b2e7-d8a6-ec11-a81c-6045bd7e5beb
Please vote.
- Damain73Copper Contributor
Bharath Arja The link you posted is erroring. Can you confirm it?
- JeannePeronneCopper ContributorYes, it's broken. See another one here: https://feedbackportal.microsoft.com/feedback/idea/b3396b24-fd99-ee11-a81c-0022484f9f6d
- rgpasseyCopper ContributorI 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.
- rgpasseyCopper ContributorIn 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?