face print problem in the CSS

Discussion in 'CSS' started by rontdu, Jan 3, 2010.

  1. #1
    hi,
    i use a css to print a .html page.they are:

    
    
    <style>
    @media screen
      {
      h.text_1 {	font-family:Tahoma,sans-serif;	font-size:14pt}
      }
    @media screen,print
      {
      h.text_1 {font-weight:bold; font-size:18pt}
      }
    @media print
    {
    	h.text_1	{	font: 18pt Tahoma;	}
    }
    </style>
    
    
    Code (markup):

    but it don't work properly. When i increase the font size it don't work,its just show its default font-size.
    then i use another css like:

    
    
    body {
      color : #000000;
      background : #ffffff;
      font-family : "Times New Roman", Times, serif;
      font-size : 18pt;
    }
    a {
      text-decoration : underline;
      color : #0000ff;
    }
    #navigation, #advertising, #other {
      display : none;
    }
    
    
    Code (markup):

    But this 2 code don't work properly to print a .html page.
    Can anyone help me to do this things ???
    Please help.
    I am waiting..........:eek::p:confused:
     
    rontdu, Jan 3, 2010 IP
  2. kk5st

    kk5st Prominent Member

    Messages:
    3,497
    Likes Received:
    376
    Best Answers:
    29
    Trophy Points:
    335
    #2
    There is no such element as "h".

    cheers,

    gary
     
    kk5st, Jan 3, 2010 IP