www.webdeveloper.com
Results 1 to 2 of 2

Thread: Headers not getting scaled in IE.

Hybrid View

  1. #1
    Join Date
    Dec 2011
    Location
    Bucharest Romania
    Posts
    40

    Headers not getting scaled in IE.

    This is what I use in Firefox and Google Chrome.

    h1, h2, h3, h4, h5, h6 {font-family: 'times new roman', arial, verdana, helvetica, serif; background-color:none;
    font-style:normal; font-variant:normal; font-weight:normal; margin:14px 0 4px 10px;}
    h1{font-size: 1.22em;}
    h2{font-size: 1.12em;}
    h3{font-size: 1.02em;}
    h4{font-size: 0.92em;}
    h5{font-size: 0.91em;}
    h6{font-size: 0.9em;}

    These lines don't work in IE.

    Does anybody have any suggestions, please?

  2. #2
    Join Date
    Oct 2012
    Posts
    78
    Using your exact CSS this works in IE9. You may have an error in another place.
    Code:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title></title>
    <style type="text/css">
    h1, h2, h3, h4, h5, h6 {font-family: 'times new roman', arial, verdana, helvetica, serif; background-color:none;
    font-style:normal; font-variant:normal; font-weight:normal; margin:14px 0 4px 10px;}
    h1{font-size: 1.22em;}
    h2{font-size: 1.12em;}
    h3{font-size: 1.02em;}
    h4{font-size: 0.92em;}
    h5{font-size: 0.91em;}
    h6{font-size: 0.9em;}
    </style>
    </head>
    <body>
    <h1> Title Title </h1>
    <h2> Title Title </h2>
    <h3> Title Title </h3>
    <h4> Title Title </h4>
    <h5> Title Title </h5>
    <h6> Title Title </h6>
    </body>
    </html>

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles