Is it possible to change the CSS of element 2 when hovering over element 1 with the mouse?
For example:
<h1 id="text1">Text1</h1>
<h1 id="text2">Text2</h1>
#text1
{
color:Green;
}
#text1:hover -> #text2 How can I achieve this effect??
{
color:Red;
}
#text2
{
color:Gray;
}