What does symbol tilde (~) mean in CSS [duplicate]
This question already has an answer here: What does the “~” (tilde/squiggle/twiddle) CSS selector mean? 5 answers I want to know what does (~) mean in css. #img1:hover ~ #img2 { opacity: 0; } In visual studio, i get 'unexpected character sequence' error when i use this symbol. what is the actual meaning of this in CSS. what does it do? MarcinJuraszek http://www.w3.org/TR/selectors/ 8.3.2. General sibling combinator The general sibling combinator is made of the "tilde" (U+007E, ~) character that separates two sequences of simple selectors. The elements represented by the two sequences share the