title: Change the text content of the first div when hovering over a second div
body: <p>I have 2 divs - I want the text of the first div to change when I hover over the second div.</p>
  
  <p>My rule below seems to have no effect:</p>
  
  <pre><code>.ico-b:hover ~ .lab-marker::before {content: "Option -";}
  </code></pre>
  
  <p>Any ideas would be much appreciated.</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-css lang-css prettyprint-override"><code>.lab-marker {
  height: 22px;
  padding-left: 5px;
  padding-right: 5px;
  border: 1px solid black;
  width: 12px;
  margin: auto;
  margin-bottom: 20px;
  font-size: 14px;
  opacity: 0.5;
  font-weight: 400;
  background-color: pink;
  }
  
  .ico-b { padding: 20px; background-color: yellow; }
  
  .ico-b:hover ~ .lab-marker::before {content: "Option -";}</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;div&gt;
  &lt;div class="lab-marker"&gt;A&lt;/div&gt;
  &lt;div class="ico-b"&gt;Hover over me&lt;/div&gt;
  &lt;/div&gt;</code></pre>
  </div>
  </div>
  </p>