I am using background areas example. I have couple of problems
- In doc under
addCustomTime
method description it is mentioned that id is added as classname but any changes to this class is not taking effect. - How to center align
content
text in a background area with background area having a border? - Also how can I change css for
setCurrentTime(time)
marker?
My css
.vis-current-time {
color: black !important;
border: 2px;
cursor: hand;
}
.milestone-1 {
color: green !important;
border: 2px;
cursor: hand;
}
.vis-item.vis-background.positive {
background-color: rgba(0, 0, 200, 0.2);
cursor: hand;
}
.vis-item.vis-background.negative {
background-color: rgba(255, 0, 0, 0.2);
cursor: hand;
}
.vis-item-overflow.vis-item-content {
left: auto !important;
text-align: center !important;
color: #ff0000 !important;
}
Here is plunker link of my problem.
Update
I am able to center align content
text to center. I have also updated my plunker but borders are not taking effect
#visualization .vis-item.vis-background.positive .vis-item-content {
width: 100%;
text-align: center !important;
border: 2px;
}
#visualization .vis-item.vis-background.negative .vis-item-content {
width: 100%;
text-align: center !important;
}