cssAudio - Activefile-genericCSS - ActiveGeneric - ActiveHTML - ActiveImage - ActiveJS - ActiveSVG - ActiveText - Activefile-genericVideo - ActiveLovehtmlicon-new-collectionicon-personicon-teamlog-outoctocatpop-outspinnerstartv

Pen Settings

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URL's added here will be added as <link>s in order, and before the CSS in the editor. If you link to another Pen, it will include the CSS from that Pen. If the preprocessor matches, it will attempt to combine them before processing.

Quick-add: + add another resource

Add External Scripts/Pens

Any URL's added here will be added as <script>s in order, and run before the JavaScript in the editor. You can use the URL of any other Pen and it will include the JavaScript from that Pen.

Quick-add: + add another resource

Code Indentation

     

Save Automatically?

If active, Pens will autosave every 30 seconds after being saved once.

Auto-Updating Preview

If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.

            
              <div class="entry" id="phark">

  <h2>
      <span>2003</span>
      Phark Method
    </h2>

  <style>
    h3.phark {
      width: 300px;
      height: 75px;
      background: url(https://s3-us-west-2.amazonaws.com/s.cdpn.io/t-90/test.png);
      text-indent: -9999px;
    }
  </style>

  <pre>&lt;h3 class="phark">
  CSS-Tricks
&lt;/h3></pre>

  <h3 class="phark">
      Phark Method
    </h3>

  <h4>Notes</h4>
  <ul>
    <li>Very likely the most widely used method.</li>
    <li>Requires browser to render a very large box (likely an insignificant performance problem, but possibly on older devices like iPad 1).</li>
    <li>Problematic in RTL situations (or anywhere text-align isn't left).</li>
    <li>Original website is offline (http://phark.typepad.com/phark/2003/08/accessible_imag.html) - but the technique is <a href="https://twitter.com/flyosity/status/386937849213640704">credit to</a> Mike Rundle.</li>
  </ul>

</div>

            
          
!
            
              .entry { background: hsla(262, 50%, 60%, 1); }
            
          
!
999px
Loading ..................

Console