|
CSS Home
CSS TutorialIntroductionCSS Advantages CSS Syntax Implementing CSS CSS Class CSS ID CSS Font CSS Text CSS Background Code CSS Border CSS Margin CSS Padding CSS Lists CSS Height & Width CSS Positioning CSS Float CSS Layers CSS Summary CSS CodesCSS AlignCSS bgcolor CSS Cellpadding CSS Cellspacing CSS Floating Menu CSS Hyperlinks CSS Leading Inline Style Sheets Embedded Style Sheets External Style Sheets CSS Scrollbars CSS Table Width CSS Print Version CSS Table-layout CSS ExamplesCSS ExamplesCSS Table-layout Example CSS ReferenceCSS Mini TutorialCSS Properties CSS Color Codes CSS Template CSS Media Types FREE Hosting!With every domain name you register with ZappyHost, you get FREE hosting.$1.99 Domain NamesWith every new non-domain purchase thru ZappyHost, you get a domain name for only $1.99. |
CSS Print VersionYou can use CSS to change the appearance of your web page when it's printed. For example, you can specify one font for the screen version and another for the print version. To create separate styles for your print version you use the @media rule. The @media rule allows you to specify a different style for different media. The example below specifies a different font for screen and print but uses the same size for both.
You can also the media attribute when linking to an external style sheet (i.e. by using the HTML link tag):
You can also use the CSS @media rule for other media types such as handhelds, braille, aural, projection, tty, and tv. Creating a "Print this Page" ButtonYou can use JavaScript to automatically open the print dialog box. Therefore, you can create a "print this page" button that, when clicked, automatically opens the print dialog box. This can be a useful feature, as it can encourage users to print your page for later reference. To do this, see the JavaScript Print article. Enjoy this website?
Oh, and thank you for supporting Quackit! |
Need Content for your Website?Get unique, quality digital content for your website. You can even earn money by reselling it!Includes:
|