CSS Media Types

Submitted by:Jhon Jhon

Date added:06 March, 2013


There are two methods for creating separate styles depending on the media type. both example given below:

Tags: media , style

Code Snippet:

Example Use the @media rule:

@media print
p.bodyText {font-family:georgia, times, serif;}

Example Use the Media attribute when linking to an external style sheet :

<LINK rel="stylesheet" type="text/css"
media="TV" href="/css/tv_version.css">