small fonts using CSS how to?

Discussion in 'CSS' started by brokensoft, Feb 1, 2007.

  1. #1
    how can i create small fonts using CSS?. That visitor see it small but google see it normally.

    thanks.
     
    brokensoft, Feb 1, 2007 IP
  2. kk5st

    kk5st Prominent Member

    Messages:
    3,497
    Likes Received:
    376
    Best Answers:
    29
    Trophy Points:
    335
    #2
    The first step, long before asking in a forum, is to RTFM.

    Google does not "see" font sizes. It simply reads the code.

    cheers,

    gary
     
    kk5st, Feb 1, 2007 IP
  3. siu00as

    siu00as Peon

    Messages:
    87
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    You can set the font size of elements in CSS using the property font-size.

    
    <html>
    <head>
    <style type="text/css">
    h1 {font-size: 150%}
    h2 {font-size: 130%}
    p {font-size: 100%}
    </style>
    </head>
    
    <body>
    <h1>This is header 1</h1>
    <h2>This is header 2</h2>
    <p>This is a paragraph</p>
    </body>
    
    </html>
    Code (markup):
     
    siu00as, Feb 1, 2007 IP
  4. kk5st

    kk5st Prominent Member

    Messages:
    3,497
    Likes Received:
    376
    Best Answers:
    29
    Trophy Points:
    335
    #4
    That's what I already told him.
     
    kk5st, Feb 2, 2007 IP
  5. siu00as

    siu00as Peon

    Messages:
    87
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Sorry, was writing my answer when u must have posted your comment :confused:
     
    siu00as, Feb 2, 2007 IP
  6. kk5st

    kk5st Prominent Member

    Messages:
    3,497
    Likes Received:
    376
    Best Answers:
    29
    Trophy Points:
    335
    #6
    My apologies. I should have looked at your time stamp.

    cheers,

    gary
     
    kk5st, Feb 2, 2007 IP