This is good, now i can add more css files. For expample with resolution 800x600 i want fonts 11px....(stored in 800x600.css)
with resolution 1024x768 i want fonts 13px....(stored in 1024x768.css)
i go to test and edit my pages
thank you for you reply, very helpful.
Im sorry, my fault...i have used this script
-----------
<link rel="stylesheet" href="800.css" type="text/css" id="MyStyleSheet" />
<script type="text/javascript">
var s_width ='';
var s_height ='';
s_width=screen.width
s_height=screen.height
if (s_width >= "1024"){...
Thank you for help me!! Your script work fine!
Look this:
http://vskipper.altervista.org/pagine/xpagina01.htm
(this is only a simple test, tomorrow i go to change all pages)
Now with 800x600 the browser use the 800x600.css file , and with 1024x768 the browser use the 1024x768.css file...
Thank you,
found this script
-------------
var s_width ='';
var s_height ='';
s_width=screen.width
s_height=screen.height
if (s_width == "800"){
location.href="page1.htm";
}
if (s_width == "1024"){
location.href="page2.htm";
}
--------------------
i think is good, but i want to...
Hi
its possible to create a javascript for detect screen resolution size, and generate a font style sheet dynamically and automatically.
For example i have 2 css files.
800x600.css
1024x768.css
Its possible, when the screen resolution is 800x600, to load automatically the 800x600.css? How i...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.