tags:

views:

16

answers:

1

how to change font-size with respect to its container.

<div id="container" style="width: 100%; height: 100%; border: 1px solid #ff0">
    <span style="font-size: 18px">Test</span>
</div>

Now if i resize my window the container is also resized but the font-size remain of fix size, i want to change the font-size according to its container. Possible?

+1  A: 

using javascript / jquery you can do this: http://www.pukkared.com/?p=996

Moin Zaman
+1 I *think* that is what OP is looking for.
Sarfraz