zachleat/BigText — Issue #13: h1 child elements don't work well :(
Author: acleancoder
Created: 2011-11-13 13:05:34+00:00
State: open

Resizing works perfect for me on natural block elements, like a div. However, when I try to use an h1 then resizing seems to act very strangely. Often falls short of the full width, and varies a lot depending on the text within the h1.

e.g.
.js_bigtext { width: 100%; margin: 22px 0 0 0; }
h1 { display: block; width: 100%; letter-spacing: 0; text-transform: uppercase; }

Title Here

$('.js_bigtext').bigtext({
childSelector: '> h1'
});