Announcement

Collapse
No announcement yet.

Actinic and CSS3 and PIE

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    #16
    I have used CSS3 PIE with actinic, for several sites, and intend to use it from now on.

    You can see it for rounded corners and drop shadows in this Actinic site I did, on the right hand side. The left hand side was done with images and divs before I discovered CSS3 PIE, but I don't think I'll go back to the old way.

    http://www.petitpoppet.com/acatalog/...terfly_II.html

    It can behave oddly in IE9 but you can tell IE9 to behave like IE8 by adding

    <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE8" >

    to the header.

    I can't get the .htc file to be picked up in the Actinic internal browser, so you don't get to see the effects until you publish.

    Comment


      #17
      I don't think Actinic's preview mode uses the IE rendering engine so it probably wouldn't pick up the effects of PIE.htc
      I have to admit I hadn't thought of trying the emulate IE8 trick.
      Steve Griggs.

      "People in business often miss opportunities, mainly because they usually arrive dressed in overalls and looking like work."



      www.kitchenwareonline.com
      www.microwave-repair.co.uk

      Comment


        #18
        I think Actinic uses the same rendering engine as IE7 as it exhibits all of the same CSS bugs, although occaisionally the internal renderer shows some very odd behavior that IE7 doesn't. It's no big deal really as the important thing is that the live site works.

        Comment


          #19
          That's the main thing, also having thought about it I'm fairly sure that the htc file needs to be on a server to work.
          Steve Griggs.

          "People in business often miss opportunities, mainly because they usually arrive dressed in overalls and looking like work."



          www.kitchenwareonline.com
          www.microwave-repair.co.uk

          Comment


            #20
            any pointers on how to get this to work as I have been struggling to get rouned corners to work in actinic!?


            Neil

            Comment


              #21
              Rounded corners are easy to implement without PIE - see it in action on the New Products here: http://www.evening-dress-shop.co.uk/index.html. It only works of course in Safari, Chrome and FF.

              Comment


                #22
                Rounded corners.

                Using CSS3 of course Duncan..
                But..
                Why not design for the latest browsers, and just make sure that your pages just don't look "broken" in older browsers?
                Just write the CSS so it "degrades gracefully", meaning Chrome, FF, Safari etc (oh and IE9 when it arrives, if your visitors have got Vista or win7) get rounded corners, drop shadows etc, and IE8 gets-plain old CSS2 pages-square corners, no drop shadows.
                Don't rely on CSS3 for essential functions and layout, just a bit of extra "eye candy" for the browsers that can do the business.
                Why can't we just accept that the web site(s) we're designing won't look the same in all browsers.
                Oh, of course you could add all sorts of extra markup with images linked to them, and slow your page loading down, and make your HTML "fatter" with all the unsemantic (is that a real word or not? Firefox says "no".) <div> and <span> elements.
                Now I've stirred up the hornets nest...
                Merry XMAS everyone. Happy coding for 2011.
                Steve Griggs.

                "People in business often miss opportunities, mainly because they usually arrive dressed in overalls and looking like work."



                www.kitchenwareonline.com
                www.microwave-repair.co.uk

                Comment


                  #23
                  Okay I have now got rounded corners running on our site.
                  But I need to get them running in IE.
                  I have uploaded the pie file to our site using Additional Files and entered the coding in my CSS file but it will not work!?

                  Any tips hints?


                  Neil

                  Comment


                    #24
                    The css line that calls the PIE behaviour must point to the location of the file relative to the HTML file the CSS relates to.
                    (I find it easiest to use the root folder)

                    IE:behavior: url(/PIE.htc);
                    Note: this path is relative to the HTML file being viewed,
                    not the CSS file it is called from.


                    There is support at this URL http://css3pie.com/documentation/


                    Another point is, is your server configured to allow use of .htc files? See below..(copied from the PIE help files)
                    Serving the correct Content-Type

                    IE requires that HTC behaviors are served up with a content-type header of "text/x-component", otherwise it will simply ignore the behavior. Many web servers are preconfigured to serve the correct content-type, but others are not.
                    If you have problems with the PIE behavior not being applied, check your server configuration and if possible update it to use the correct content-type. For Apache, you can do this in a .htaccess file:
                    AddType text/x-component .htc If for some reason you are unable to modify the server configuration (e.g. if you are on a shared host which does not allow custom .htaccess files), then you may also use a wrapper script. For instance, PIE includes in its distribution files a PHP script called PIE.php; this script simply serves up the PIE.htc file using the correct content-type header. To use it, simply make sure both PIE.php and PIE.htc are in the same directory, and then in your CSS point the behavior to the PHP file instead:
                    behavior: url(PIE.php);
                    Steve Griggs.

                    "People in business often miss opportunities, mainly because they usually arrive dressed in overalls and looking like work."



                    www.kitchenwareonline.com
                    www.microwave-repair.co.uk

                    Comment


                      #25
                      Cheers for the pointers!

                      I couldn't find the .htaccess file on my server so have uploaded PIE.php and have changed my css file to this:

                      #container1 {
                      behavior: url(http://www.gparts.co.uk/PIE.php);
                      -moz-border-radius: 10px;
                      -moz-box-shadow: 10px 10px 7px #888;
                      -webkit-border-radius: 10px;
                      -webkit-box-shadow: 10px 10px 7px #888;
                      width:600px;
                      background:#eeeeee;
                      border-color:#DEDEDE;
                      }

                      I am just doing a upload and will test again in IE.

                      Neil

                      Comment


                        #26
                        Just tried this and it still is not working!?


                        mmmmmmmmmmmmmm


                        Neil

                        Comment


                          #27
                          Did you uplad the .htc and .php file using additional files? If so try changing the CSS path to http://www.gparts.co.uk/acatalog/PIE.php
                          The Pretty Dress Company

                          Comment


                            #28
                            okay I have uploaded pie.php via additonal files and changed the css to the following.

                            #container1 {
                            behavior: url(http://www.gparts.co.uk/acatalog/PIE.php);
                            -moz-border-radius: 10px;
                            -moz-box-shadow: 10px 10px 7px #888;
                            -webkit-border-radius: 10px;
                            -webkit-box-shadow: 10px 10px 7px #888;
                            width:600px;
                            background:#eeeeee;
                            border

                            Currently doing an upload now!

                            Neil

                            Comment


                              #29
                              nope still not working mmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmm

                              Neil

                              Comment


                                #30
                                Just spotted you haven't added the box shadow and radius rules for ie

                                Try:
                                #container1 {
                                behavior: url(http://www.gparts.co.uk/acatalog/PIE.php);
                                -moz-border-radius: 10px;
                                -moz-box-shadow: 10px 10px 7px #888;
                                -webkit-border-radius: 10px;
                                -webkit-box-shadow: 10px 10px 7px #888;
                                width:600px;
                                background:#eeeeee;
                                box-shadow:#888 10px 10px 7px;
                                border-radius:10px;
                                Last edited by meden; 12-Jan-2011, 12:36 PM. Reason: punctuation
                                The Pretty Dress Company

                                Comment

                                Working...
                                X