media="all" : media « Style Basics « HTML / CSS

HTML / CSS » Style Basics » media 
media="all"
  

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Combination Style Sheet Example</title>
<style type="text/css" media="all">
h1 {
    font: .85em Verdana;
    color: blue;
)
{
    font: .95em Verdana;
}
</style>
</head>
<body>
<h1 style="font-family: Times; font-size: .95em;">
Aftermath</h1>
<p><em>this is a test. </em></p>
<p>this is a test. ,<br />
this is a test. </p>
</body>
</html>

   
  
Related examples in the same category
1.The media attribute lets you control what styles are applied to whichmedia.
2.media="Screen"
3.insert a page break in the document for printing purposes.
4.insert a page break before an element by using page-break-before:always
5.Link two style files, one for screen, one for print
6.these rules will only apply when printing
7.Language ISO subcode
8.The media attribute lets you control what styles are applied to which media.
java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.