Fit Cufon texts to its container

Categories: Diğer, jQuery

Well, I ran into a situation that my design messed up when the cufon title width passed it’s container width, so I needed to lower the font-size automatically to make it fit into it’s container staying still an one-line title. And I wanted to share here. Here’s the function I wrote: function Cufon_Fit_Title(element) { var … Read More

pngfix WordPress Plugin

Categories: Featured, Wordpress

This plugin uses CSS technique to fix the png image transparency issue and jQuery to apply this script to all of png images shown in the page. The CSS code added by the script is : .png { background-image: expression( this.runtimeStyle.filter = “progid:DXImageTransform.Microsoft.AlphaImageLoader(src=” + (this.tagName==\’IMG\’ ? this[\’src\’] : this.currentStyle[\’backgroundImage\’].split(\’\”\’)[1]) + “)”, this.runtimeStyle.backgroundImage = “none”, this.src … Read More