Can't change one specific div in a list ?
Hello, I have a list of several div (10). i gave them the exact same configuration with a class. And then proceded to give each one a unique id. Now my problem is that everything works until i try to select one of the div and change it with CSS. here's the html part : <div id='menu'> <div id="firstlist"> <ul> <li><div id='1b' class='ch'></div></li> <li><div id='2b' class='ch'></div></li> <li><div id='3b' class='ch'></div></li> <li><div id='4b' class='ch'></div></li> <li><div id='5b' class='ch'></div></li> </ul> </div> <div id='secondlist'> <ul> <li><div id='6b' class='ch'></div></li> <li><div id='7b' class='ch'></div></li> <li><div id='8b' class='ch'></div></li> <li><div id='9b' class='ch'></div></li> <li><div id='10b' class='ch'></div></li> </ul> </div> </div> And here's the CSS part : #1b{ background-color: red; } #menu{ display: flex; } #menu ul{ display: flex; flex-direction: column; } .ch{ border: 1px solid black; border-radius: 100%; height: 60px; width: 60px; transition-duration: 0.5s; list-style: none; margin: 8px; } .ch:hover{ transition-duration: 0.5s; width: 70px; height: 70px; } .ch:active{ transition-duration: 0.5s; border-bottom-color: red; } a HUGE thanks to anyone that can help !!! Have a great day !