Solved

Change css depend screen resolution.

Posted on 2006-11-25
1
1,186 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
Comment Utility
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
This article discusses how to create an extensible mechanism for linked drop downs.
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.
The viewer will receive an overview of the basics of CSS showing inline styles. In the head tags set up your style tags: (CODE) Reference the nav tag and set your properties.: (CODE) Set the reference for the UL element and styles for it to ensu…

744 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

18 Experts available now in Live!

Get 1:1 Help Now