Solved

Change css depend screen resolution.

Posted on 2006-11-25
1
1,191 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

This article covers the basics of the Sass, which is a CSS extension language. You will learn about variables, mixins, and nesting.
What is Node.js? Node.js is a server side scripting language much like PHP or ASP but is used to implement the complete package of HTTP webserver and application framework. The difference is that Node.js’s execution engine is asynchronous and event…
The viewer will the learn the benefit of plain text editors and code an HTML5 based template for use in further tutorials.
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).

911 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

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now