Thursday, September 09, 2010

How to hide page elements while printing

<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <style type="text/css" media="print">
        #topNavigation { display:none; }
        #footer { display:none; }
    </style>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <div id="topNavigation">
            Top Navigation
        </div>
        <div id="content">
            Content
        </div>
        <div id="footer">
            Footer
        </div>
    </div>
    </form>
</body>
</html>

No comments:

iPhone Launch Screen Sizes

iPhone Portrait iOS 8 Retina HT 5.5 = 1242 X 2208 Retna HD 4.7 = 750 X 1134 iPhone Landscape iOS 8 Retina HD 5.5  2208 X 1242 iPho...