Can i use it in a div instead the whole window?
lucasumberto opened this issue · comments
Lucas commented
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!
John Barrier Wilson commented
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();