web analytics
Home // Ana Sayfa

Latest Post

Fit Cufon texts to its container

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 TotalWidth = 0; element.children().each(function(){ TotalWidth += $(this).width(); }); if(TotalWidth > element.width()){ element.css("font-size",(parseInt(element.css("font-size"))-1)+"px"); Devamını oku [...]

Dinlediklerim

Categories

Son Yazılar // Recent Posts

jQuery Scrolite Plugin
April 14, 2012
By Taha Paksu
Yine yarışmadayım!
March 1, 2012
By Taha Paksu
SASS User Tool for Editplus
February 22, 2012
By Taha Paksu
Installing SASS on Windows
February 22, 2012
By Taha Paksu
SASS – Syntatically Awesome Stylesheets
February 22, 2012
By Taha Paksu
Bir isim koyma hikayesi: nelm.io
February 21, 2012
By Taha Paksu
PHP Animated Gif Resizer
February 13, 2012
By Taha Paksu
about costabrava hack and some fix.
February 11, 2012
By Taha Paksu