Have y'all e'er idea to embed CSS compressor tool inwards your website or blog? Know the benefits of Compressed CSS? Today nosotros are going to explicate how to install CSS minify inwards your blogspot template.Well If y'all are non a spider web developer as well as thus installing CSS inwards your blogger template is non worth at all because y'all are never e'er going to compress CSS.But if y'all are developer,Skilled CSS Writer as well as thus y'all must bespeak it to compress your CSS.However 1 fourth dimension everyone bespeak to compress CSS to brand your webpage charge fast.But don't endeavour unless as well as until y'all don't convey a noesis of CSS compressor as well as also of your template variables.You tin dismiss inquire us to compress nosotros volition create it for y'all free.you tin dismiss guide contact us. However Now days Custom templates already convey compressed CSS y'all don't bespeak it ,but if your template writer is quite pop as well as is known for his industrial plant as well as thus alone y'all tin dismiss believe that your template does non bespeak it.See the CSS Minifer Demo.
How CSS Compressor Works?
CSS online Compressor Free tool detects the unnecessary spaces as well as tag used yesteryear thus many times as well as which convey no usage ,our Css compressor volition take away those tags as well as also decrease the full size of your onetime css code.CSS minifier is the best tool to optimize your css as well as introduce inwards a perfect mode as well as later on compressing your css don't worry it volition non laissez passer on lawsuit to your website pattern or layout.it's merely helps to charge your webpage fast as well as smoothly.If y'all desire to add together this css minify online costless tool as well as thus follow the steps mentioned below.
How To Install CSS Minifer In Blogger Website
Step .1 Go to your Dashboard->Create New Page (create novel page non novel post)->HTML (near the compose tab).
Step .2 Now Copy the below code as well as glue inwards your HTML post.
<style>Step .3 Now Publish Your Post..Done !
#sidebar-wrapper, #midsidebar-wrapper, .post-header-line-1, .post-footer { display:none !important;} #main-wrapper { width:98%!important;} .post { width:98%!important; }
</style>
<!-- CSS Minifer By www.BloggersStanD.com -->
<div id="cssminifier">
<style scoped="" type="text/css">
#cssminifier{background:#FF4000;position:relative;display:block;clear:both;border-radius:5px;padding:2px;border:1px;color:666666}
#cssminifier textarea{width:100%;height:240px;margin:0 auto;display:block;background-color:#fff;padding:20px;font:normal 13px 'Courier New',Monospace;border:0;border-radius:5px 5px 0 0;resize:none}
textarea:focus{background-color:#FFF;color:#000000}
#cssminifier .box{margin:10px automobile 30px;color:ff4000;}
#cssminifier .box p{margin:0 0 2px}
#cssminifier button{cursor:pointer;}
#cssminifier .col{width:48%;margin:0 automobile 30px}
#cssminifier .left{float:left;margin-left:1%}
#cssminifier .right{float:right;margin-right:1%}
#cssminifier .button-group{background:#666666;text-align:center;padding:20px 20px 40px 20px;margin:0;border-radius:0 0 5px 5px}
#cssminifier button,#cssminifier button[disabled]:active{background:#66666;text-align:center;color:#ff4000;display:inline-block;padding:6px 12px;font-size:14px;font-weight:400;line-height:1.471;border-radius:4px;margin:0 5px;border:0;transition:all .1s}
#cssminifier button:hover,#cssminifier button:active{background:#ff4000;color:#fff}
#cssminifier button[disabled],#cssminifier button[disabled]:active{background:#fff;}
#cssminifier .opt1,#cssminifier .opt2,#cssminifier .opt3,#cssminifier .opt4,#cssminifier .opt5{display:inline-block;margin:0 0 0 10px;vertical-align:middle;border:none;outline:none}
#cssminifier br,#sidebar-wrapper{display:none}
#post-wrapper {float:none;width:100%;}
</div>
</style>
<span class="clear"></span>
<textarea autofocus="" id="cssField" placeholder="Paste your CSS code here..." spellcheck="false"></textarea><br />
<div class="button-group">
<div class="box">
<input class="opt1" id="stripAllComment" type="checkbox" /> <br />
<label for="stripAllComment">Strip all comments</label><br />
<input class="opt2" id="superCompact" type="checkbox" /> <br />
<label for="superCompact">Super compact</label><br />
<input class="opt3" id="betterIndentation" type="checkbox" /> <br />
<label for="betterIndentation">Keep indentation</label><br />
<input checked="" class="opt4" id="keepLastComma" type="checkbox" /> <br />
<label for="keepLastComma">Remove the final semicolon</label></div>
<button onclick="compressCSS("cssField");">Compress CSS</button><br />
<button onclick="clearField("cssField");">Clear Field</button> <br />
<button onclick="selectAll("cssField");">Select All</button></div>
<div class="clear">
</div>
<script type="text/javascript">
percentage get(e){return document.getElementById(e)}function highlightCode(e){if(hc.checked){var a=e.innerHTML;a=a.replace(/\{([\s\S]+?)\}/g,function(e){return e.replace(/\'(.*?)\'/g,"<span class='st'>'$1'</span>").replace(/\"(.*?)\"/g,"<span class='st'>\"$1\"</span>").replace(/(\{|\n|;)?(.[^\{]*?):(.[^\{]*?)(;|\})/g,"$1<span class='pr'>$2</span>:<span class='vl'>$3</span>$4").replace(/<span class='pr'>\{/g,"{<span class='pr'>")}),a=a.replace(/<(.*?)('|")(.*?)('|")>/g,function(e){return e.replace(/'(.*?)'/g,"<span class='vl'>'$1'</span>").replace(/"(.*?)"/g,"<span class='vl'>\"$1\"</span>")}),a=a.replace(/\{([\s\S]+?)\}/g,function(e){return e.replace(/([\(\)\{\}\[\]\:\;\,]+)/g,"<span class='pn'>$1</span>").replace(/\!important/gi,"<span class='im'>!important</span>")}),a=a.replace(/\/\*([\w\W]+?)\*\//gm,"<span class='cm'>/*$1*/</span>"),e.innerHTML="<code>"+a+"</code>",hr.style.display="block",rt.style.display="block"}else hr.style.display="none",rt.style.display="none"}function compressCSS(e){var a=get(e),c=/@(media|-w|-m|-o|keyframes|page)(.*?)\{([\s\S]+?)?\}\}/gi,n=a.value,t=n.length;n=sa.checked||sc.checked?n.replace(/\/\*[\w\W]*?\*\//gm,""):n.replace(/(\n+)?(\/\*[\w\W]*?\*\/)(\n+)?/gm,"\n$2\n"),n=n.replace(/([\n\r\t\s ]+)?([\,\:\;\{\}]+?)([\n\r\t\s ]+)?/g,"$2"),n=sc.checked?n:n.replace(/\}(?!\})/g,"}\n"),n=bi.checked?n.replace(c,function(e){return e.replace(/\n+/g,"\n ")}):n.replace(c,function(e){return e.replace(/\n+/g,"")}),n=bi.checked&&!sc.checked?n.replace(/\}\}/g,"}\n}"):n,n=bi.checked&&!sc.checked?n.replace(/@(media|-w|-m|-o|keyframes)(.*?)\{/g,"@$1$2{\n "):n,n=cm.checked?n.replace(/;\}/g,"}"):n.replace(/\}/g,";}").replace(/;+\}/g,";}").replace(/\};\}/g,"}}"),n=n.replace(/\:0(px|em|pt)/gi,":0"),n=n.replace(/ 0(px|em|pt)/gi," 0"),n=n.replace(/\s+\!important/gi,"!important"),n=n.replace(/(^\n+|\n+$)/,""),a.value=n,hr.innerHTML="/* "+(t-n.length)+" of "+t+" unused characters has been removed. */\n"+n.replace(/</g,"<").replace(/>/g,">"),highlightCode(hr)}function clearField(e){var a=get(e);a.value="",a.focus()}function selectAll(e){get(e).focus(),get(e).select()}var hc=get("highlightCode"),sa=get("stripAllComment"),sc=get("superCompact"),cm=get("keepLastComma"),bi=get("betterIndentation"),bs=get("breakSelector"),tt=get("toTab"),to=get("tabOpt").getElementsByTagName("input"),sb=get("spaceBetween"),ip=get("inlineSingleProp"),rs=get("removeLastSemicolon"),il=get("inlineLayout"),si=get("singleBreak"),hr=get("highlightedResult"),rt=document.getElementsByTagName("h2")[1];
</script>
</div>
No comments:
Post a Comment