import style for printing - HTML CSS CSS Property

HTML CSS examples for CSS Property:import Rule

Description

import style for printing

Demo Code

ResultView the demo in separate window

<!DOCTYPE html>
<html lang="en">
 <head>
  <title>Example of CSS @import rule</title>
  <style type="text/css">
    @import url("../css/default.css");
    @import url("../css/print-style.css") print;
    body {<!--  w w  w .  j  ava2  s.c  o  m-->
    color: red;
    font-size: 1em;
  }
</style>
 </head>
 <body>
  <h1>Importing External Style Sheet</h1>
 </body>
</html>

Related Tutorials