vertical alignment of `gt` cell contents

You can pass the css attribute of vertical-align:top to your table using tab_style:

df %>% gt() %>% 
  tab_style(
    style = "vertical-align:top",
    locations = cells_data(
      columns = vars(index)
      )
  ) 
5 Likes