Solved

Change css depend screen resolution.

Posted on 2006-11-25
1
1,198 Views
Last Modified: 2013-11-19
This script changes the css depending the screen resolution.
I want to be able to add different css for more screen resolution ex: 600 x 400 and 1124 x 800

<link rel="stylesheet" type="text/css" media="screen" href="css/size800.css" />
<script type="text/javascript">

<!--

if (screen.width > 800)

  link = document.getElementsByTagName("link")[0];

  link.href = "css/size1024.css";

-->

</script>
0
Comment
Question by:rodesro
1 Comment
 
LVL 30

Accepted Solution

by:
third earned 125 total points
ID: 18012942
0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Preface This is the third article about the EE Collaborative Login Project. A Better Website Login System (http://www.experts-exchange.com/A_2902.html) introduces the Login System and shows how to implement a login page. The EE Collaborative Logi…
JavaScript can be used in a browser to change parts of a webpage dynamically. It begins with the following pattern: If condition W is true, do thing X to target Y after event Z. Below are some tips and tricks to help you get started with JavaScript …
Viewers will learn about arithmetic and Boolean expressions in Java and the logical operators used to create Boolean expressions. We will cover the symbols used for arithmetic expressions and define each logical operator and how to use them in Boole…
Viewers will learn about if statements in Java and their use The if statement: The condition required to create an if statement: Variations of if statements: An example using if statements:

680 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question