On 8/24/14, 18:27, Philippe Wittenbergh wrote:
Le 25 août 2014 à 09:51, Elli Vizcaino <e7f...@gmail.com> a écrit :
Is there anyway to get font sizing to resize proportionately based on
containing element width?
You can eventually use vw, vmin units to specify the font-size. That is
based on the viewport width/height. I assume that your containing element
will resize based on the viewport size. There are a few demos out there, use
your favourite search engine.
http://dev.w3.org/csswg/css-values/#viewport-relative-lengths
Philippe
In the meantime, I have used a series of media queries to solve this very
problem. Assuming you are using ems, rems, or percent font-size throughout, this
works out quite well, if a bit messy.
Like Philippe’s suggestion though, this only works for viewport widths. Only
JavaScript will solve it for adjusting to a container element’s width AFAIK.
--
Cordially,
David
______________________________________________________________________
css-discuss [css-d@lists.css-discuss.org]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
List policies -- http://css-discuss.org/policies.html
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/