Information Technology Reference
In-Depth Information
Listing 5-6.
Media Query Example 1: Hiding or showing a block based on media type
<style type="text/css" media="screen">
#advertisements {
display:block;
}
</style>
<style type="text/css" media="print">
#advertisements {
display:none;
}
</style>
Figure 5-10.
The Android Thoughts homepage viewed in a normal Desktop web browser