Solved

Change css depend screen resolution.

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

Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

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…
I found this questions asking how to do this in many different forums, so I will describe here how to implement a solution using PHP and AJAX. The logical flow for the problem should be: Write an event handler for the first drop down box to get …
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…
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).

809 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