How to vertically align the group names in Timeline

705 Views Asked by At

How to vertically align (middle) the group names (IDs) using the visjs Timeline.

visjs.org

1

There are 1 best solutions below

0
On BEST ANSWER

This isn't really possible as the height of a group is determined from the max of the label height and the (stacked) items height.

If your groups have a known height though (like if you don't use stacking of items), you could just give the CSS of the group labels a matching fixed height, and add CSS to align the text to the middle.