simplefocus / FlowType.JS

Web typography at its finest: font-size and line-height based on element width.

Home Page:http://simplefocus.com/flowtype/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Can i use it in a div instead the whole window?

lucasumberto opened this issue · comments

Hello!

I am developing a panel that has some re-sizable (jquery property) boxes (divs) that i want they to have the flowtype property in the text inside, but i can only change the text size when i change the whole browser size...

it's possible to make it only change the text inside the div, calculating the div's size instead the window size?

Thanks!

Yes. Add a class to your div (let's say we call it class-name), then replace window in the call. For example:

$('.class-name').flowtype();