I'm currently working on a timeline project and I am facing an issue with combining different border styles for specific event times. The main challenge is to have a solid border for most of the timeline events, except for a few instances that share a common class where a dotted border is needed. Here is the code snippet I have so far.
Specifically, I would like the border between the Break event and Event 4 to be displayed as dotted instead of solid. I am open to any CSS/JS solution that could help achieve this.
.timeline {
...CSS styles here...
}
.timeline .event:before,
.timeline .event:after {
...additional CSS styles...
}
...more CSS code...
<ul class="timeline ">
<li class="event" data-date="09:30 - 10:00 ">
<!-- Event 1 HTML -->
</li>
<li class="event" data-date="10:00 - 10:30 ">
<!-- Event 2 HTML -->
</li>
<li class="event break" data-date="10:30 - 11:00 ">
<!-- Break event HTML -->
</li>
<li class="event" data-date="11:00 - 11:30 ">
<!-- Event 4 HTML -->
</li>