Nextedy GANTT applies CSS classes to DOM elements for task bars, markers, resource allocation indicators, and structural components.
This page documents CSS classes derived from source code constants. Class names are stable across versions, but inspect the DOM in your browser developer tools to confirm availability in your specific Gantt version.
Task bars in the Gantt chart receive CSS classes based on their type and state:
CSS Class
Applied To
Description
Milestone class
Task bars of type milestone
Applied to diamond-shaped milestone markers
Summary task class
Task bars of type project
Applied to summary/parent task bars with expandable children
Leaf task class
Task bars of type task
Applied to standard leaf-level task bars
rangeConflict
Task bars and parent bars
Applied when a child task’s dates extend beyond its parent’s date range
Risky class
Task bars at risk
Applied when the task end date is in the past
Unplanned class
Unplanned task bars
Applied to tasks with no scheduled dates
Use the task bar CSS classes to visually distinguish milestones from summary tasks and leaf tasks. For example, apply a different background color to milestone elements.
/* Style the today marker line */.gantt_marker.today { background-color: #e53935; opacity: 0.8;}/* Style plan iteration markers */.gantt_marker.plan { background-color: #3f51b5; border-left: 2px dashed #3f51b5;}/* Custom color class for a named marker */.gantt_marker.blue { background-color: #039be5;}