by http://webgeektutorials.blogspot.com
Showing posts with label CSS2. Show all posts
Showing posts with label CSS2. Show all posts

Tuesday, February 28, 2012

Detecting IPhone Device

There are few ways you can detect Iphone Device, and tell browser to behave accordingly. The iPhone launched with this user agent:

Mozilla/5.0 (iPhone; U; CPU like Mac OS X; en) AppleWebKit/420+ (KHTML, like Gecko) Version/3.0 Mobile/1A543a Safari/419.3

Todetect User Agent
Using ASP code
For those on a Windows Server, create a file called user-agent.asp and put the following lines of code in:
<%
Response.Write Request.ServerVariables (“HTTP_USER_AGENT”)
%>
Using PHP Code
For those on Linux based servers
<?php

Monday, January 10, 2011

CSS Cheat Sheet

A quick reference guide for CSS, listing selector syntax, properties, units and other useful bits of information.

The CSS cheat sheet is designed to act as a reminder and reference sheet, listing all selectors and properties. It includes a visual example of the box model, unit reference for CSS units and the various media types CSS makes allowance for. A description of what is on the cheat sheet follows, or if you are impatient, you can go straight to the full size CSS cheat sheet.