Skip to content

Commit 0e3ff66

Browse files
committed
Added much needed things to the readme.
1 parent 07374d7 commit 0e3ff66

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,13 @@ jQuery("#responsive_headline").fitText(1.2, { minFontSize: '20px', maxFontSize:
3333

3434
## CSS FAQ
3535

36-
- **Make sure your container has a width!**
36+
- :warning: Run FitText before anything that hides the element you're trying to size (e.g. before Carousels, Scrollers, Accordions, Tabs, etc). Hiding an element's container removes its width. It can't resize without a width.
37+
- :warning: **Make sure your container has a width!**
3738
- `display: inline` elements don't have a width. Use `display: block` OR `display: inline-block`+ a specified width (i.e. `width: 100%`).
3839
- `position:absolute` elements need a specified width as well.
3940
- Tweak until you like it.
4041
- Set a No-JS fallback font-size in your CSS.
42+
- :new: If your text is full width, you might want to **NOT** use FitText and just use CSS `vw` units instead. Supported in all major browsers.
4143

4244
## Don't use jQuery?
4345
That's okay. Check out these handy non-jQuery versions maintained by other people.

0 commit comments

Comments
 (0)