Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Change css depend screen resolution.

Posted on 2006-11-25
1
Medium Priority
?
1,222 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 500 total points
ID: 18012942
0

Featured Post

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

Question has a verified solution.

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

SASS allows you to treat your CSS code in a more OOP way. Let's have a look on how you can structure your code in order for it to be easily maintained and reused.
Without even knowing it, most of us are using web applications on a daily basis.  In fact, Gmail and Yahoo email, Twitter, Facebook, and eBay are used by most of us daily—and they are web applications. We generally confuse these web applications to…
Viewers will learn one way to get user input in Java. Introduce the Scanner object: Declare the variable that stores the user input: An example prompting the user for input: Methods you need to invoke in order to properly get  user input:
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.
Suggested Courses

971 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