0

Is there any way to scale window content with javascript and/or CSS 2 ? Im looking for something similiar to CSS 3 - transform:scale(x,y). Lets say that I have a div, filled with some text and with fixed width/height. When I change the size of my browser window, div will resize but the text will not change its size. I want the text to squeeze just like it does in CSS 3 which unfortunately is not supported by my browser.

Thanks in advance for your time.

3
  • what's exactly "your browser" vendor and version? Commented Jan 17, 2012 at 12:14
  • I can't answer you on this one :( Im working with some kind of a decoding device with dedicated built-in browser. The only thing I know is that it supports JS and CSS 2. Commented Jan 17, 2012 at 12:17
  • does it supports mediaqueries? Commented Jan 17, 2012 at 12:19

1 Answer 1

2

use mediaqueries: https://developer.mozilla.org/en/CSS/Media_queries

depending on the size of the browser window you can define several css rules, in particular use max/min-width query

Sign up to request clarification or add additional context in comments.

1 Comment

Thanks. Mediaqueries seems to be the best solution for my problem right now.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.