.calendar-header.hours { grid-template-columns: 120px; } .calendar-weekday-column { background: white; position: relative; gap: 1px; display: grid; } .test-entry { position: initial; background: yellow; padding: 0px 5px; top: calc(100% / 23 * 11 + 1px); height: calc(100% / 23 * 3 - 1px); } .test-entry.two { background: red; top: calc(100% / 23 * 1.1 + 1px); height: calc(100% / 23 * 3 - 1px); }