Minify CSS shortcode

WordPress shortcode for minifying (inline) CSS (Cascading Style Sheets).

Attributes

none

Example

Code

<style>[drx_minifycss]
h1.foobar {
display: inline !important;
border: none !important;
box-shadow: none !important;
height: 1em !important;
width: 1em !important;
margin: 0 .07em !important;
vertical-align: -0.1em !important;
background: none !important;
padding: 0 !important;
color: #00f;
}[/drx_minifycss]</style>
<h1 class="foobar">Foo Bar</h1>

Source Output

<style>h1.foobar{display:inline!important;border:0!important;box-shadow:none!important;height:1em!important;width:1em!important;margin:0 .07em!important;vertical-align:-.1em!important;background:none!important;padding:0!important;color:#00f}</style>
<h1 class="foobar">Foo Bar</h1>

Display Output

Foo Bar