-
-
/* Set default width, margin, float, and
-
background. */
-
body, #wrap, #content, #container, {
-
width: 100%;
-
margin: 0;
-
float: none;
-
background: #fff url(none);
-
}
-
-
/* Remove any elements not needed in print.
-
This would include navigation, ads, sidebars, etc. */
-
#nav, .noprint, #footer {
-
display: none;
-
}
-
-
/* Set body font face, size, and color.
-
Consider using a serif font for readability. */
-
body {
-
font: 1em Arial, "Times New Roman", Times, serif;
-
color: #000;
-
}
-
-
/* Set heading font face, sizes, and color.
-
Diffrentiate your headings from your body text.
-
Perhaps use a large sans-serif for distinction. */
-
h1,h2,h3,h4,h5,h6, p, span {
-
font-family: Georgia, Arial, sans-serif;
-
color: #000;
-
}
-
h1 { font-size: 250%; }
-
h2 { font-size: 175%; }
-
h3 { font-size: 135%; }
-
h4 { font-size: 100%; font-variant: small-caps; }
-
h5 { font-size: 100%; }
-
h6 { font-size: 90%; font-style: italic; }
-
-
/* Make hyperlinks more usable.
-
Ensure links are underlined, and consider appending
-
the URL to the end of the link for usability. */
-
a:link, a:visited {
-
color: #ff9900;
-
text-decoration: underline; }
-
-
#content a:link:after, #content a:visited:after {
-
content: " (" attr(href) ") ";
-
}
-
How to Detect iPhone with JavaScript
Use Javascript to detect then apply different style for iPhone.
JavaScript