Forum Discussion
drmrbrewer
Oct 01, 2023Copper Contributor
Formatting to set background colour of entire cell (not just text part)
I am using custom formatting along the following lines: {
"$schema": https://developer.microsoft.com/json-schemas/sp/v2/column-formatting.schema.json,
"elmType": "div",
"txtContent": "@curren...
SalOo0
Jul 07, 2024Copper Contributor
drmrbrewer I was also looking for a solution on this one, did you end up finding anything? The only thing I found that may be helpful for your purposes is by setting the minimum height as per this post https://stackoverflow.com/questions/59706211/change-background-color-of-a-column-in-a-sharepoint-list#:~:text=This%20is%20due%20to%20the%20min-height%20property%20set.,to%20make%20it%20fill%20out%20the%20whole%20cell. - which may work for your list if the item heights are moreorless static. Unfortunately I am trying to do this on a multi-line text column with text wrapping, the content for which varies significantly with each item.