To get the label of the duration event to be within the tape, you'll
need to change some javascript.
The position of the label is controlled by the painter you are using.
If you are using original-painter.js, then you want to change the code
for painting duration events. There are two methods --
paintPreciseDurationEvent and paintImpreciseDurationEvent.
In these functions, the variable labelTop controls the vertical
position of the label.
The default value is:
var labelTop = Math.round(
metrics.trackOffset + track * metrics.trackIncrement +
theme.event.tape.height);
Change this to:
var labelTop = Math.round(metrics.trackOffset + track *
metrics.trackIncrement);
and the label should be positioned at the same vertical position as
the tape.
You mention that all your tapes are red and you want your labels to be
white. Remember, if your label is longer than the event tape, the text
will extend out over the right edge of the tape. If your timeline
background is white or light-colored, you might not be able to see the
rest of the label.
--Mike