css html attribut

Solutions on MaxInterview for css html attribut by the best coders in the world

showing results for - "css html attribut"
Yannik
10 May 2017
1<div class='dynamic-color' data-assigned-color='red'>lorem ipsum</div>
2<div class='dynamic-color' data-assigned-color='blue'>lorem ipsum</div>
3<div class='dynamic-color' data-assigned-color='green'>lorem ipsum</div>
4
5.dynamic-color {
6    color: [data-assigned-color];
7}
8