title: How to change <span> text in CSS media query
body: <p>I am trying to change the text inside a <code>&lt;span&gt;</code> element within a media query, and I want to avoid using JavaScript if possible. Is there a way to do this with only HTML/CSS?</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>@media only screen and (max-width: 768px) {
    header .text-1 {
      /* property here? */
    }
    header .text-2 {
      /* property here? */
    }
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;header&gt;
    &lt;div class="banner"&gt;
      &lt;span class="text-1"&gt;COLMAR&lt;/span&gt;
      &lt;!-- change to "C" --&gt;
      &lt;span class="text-2"&gt;ACADEMY&lt;/span&gt;
      &lt;!-- change to "A" --&gt;
    &lt;/div&gt;
  &lt;/header&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p>When the window is less than 768px wide, I want the two <code>&lt;span&gt;</code>s in the <code>&lt;header&gt;</code> to be abbreviated to just one character ("C" and "A").</p>
  
  <p>I looked on <a href="https://www.w3schools.com/CSSref/pr_gen_content.asp" rel="nofollow noreferrer">W3</a> for a property that would do this, something similar to (I think) JavaScript's <code>.innerHtml</code>, and I found <code>content</code>, but it doesn't seem to do what I am looking for.</p>
  
  <p>I am willing to use JavaScript if necessary, I just want to avoid it if it only takes a couple lines in CSS.</p>