Passing in data to change Style/HTML

Ill start of by saying I'm very new to CSS/Website making. I'm trying to build a feature where I have a timeline of a day. it should also be possible to add different time slots, lunch break etc. https://codepen.io/d0kefish/pen/WNgNKjL The question I have now, is how would I get this information into the page. The current solution (I have no idea if its viable or not) is that I stack the schedule ontop, with different parts transparent to get the box at the desired location. What boggles my mind is how I'd get this information onto the page. I.e I could send for example another div into the page with a variable I assume, but how would it be styled as I need the style from the CSS. This question might not make sense and sorry if I waste your time. You are free to tell me this is terrible, and that i should rethink.
Felix
CodePen
WNgNKjL
...
0 Replies
No replies yetBe the first to reply to this messageJoin