SitePoint Sponsor

User Tag List

Results 1 to 3 of 3

Hybrid View

  1. #1
    SitePoint Member
    Join Date
    Nov 2009
    Posts
    4
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    strange behaviour with pie.htc

    Hello

    I am trying to use PIE.htc to make IE work properly.

    If the style is in the head of the html it works:

    "<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>

    <style type="text/css">
    body {
    background-color: #fff;
    font: normal 11pt Trebuchet MS,Arial,sans-serif;
    }
    #container {

    width:950px;
    height:300px;
    border-right:1px solid #0774F0;
    border-left:1px solid #0774F0;
    border-top:1px solid #0774F0;
    border-bottom:1px solid #0774F0;
    background-color:#ffffff;
    margin-bottom:25px;
    -moz-box-shadow: 0px -3px 55px 20px #888888;
    box-shadow: 0px -3px 55px 20px #888888;
    -webkit-box-shadow: 0px -3px 55px 20px #888888;

    -moz-border-radius: 25px; /* Firefox */
    -webkit-border-radius: 25px; /* Safari, Chrome */
    border-radius: 25px; /* CSS3 */

    behavior:url(PIE.htc);
    }

    </style>
    </head>
    <body>
    <div id="container" style="behavior:url(PIE.htc);">
    </div>
    </body>
    </html>"

    But if I refer to an style sheet with exactly the same style ad=s the container above, it does not work.

    ie I include "<link rel="stylesheet" type="text/css" href="style.css">" in the html and have the container style in style.css.

    Any ideas what is going on.

    Best Wishes

  2. #2
    SitePoint Enthusiast
    Join Date
    Aug 2011
    Posts
    85
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    It's probably a silly question, but are the style.css and PIE.htc files in the same directory?

  3. #3
    SitePoint Member
    Join Date
    Nov 2009
    Posts
    4
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Yes. I am doing this all on my desktop - not yet uploaded to website - and I have a folder containing index.htm, PIE.htc and style.css. I drag and drop index.htm into IE8 or double click to open in Firefox


Bookmarks

Posting Permissions

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