The Latest Articles:

There’s a project out there called PIE. It is in beta. I tested version 1 yesterday. Version 2 is out today. I’ll take it for a spin soon.  I have no idea what version will be up by the time you read this post.  But I do know they post the latest at the top and date the files, nice.

It took me a couple of hours to figure out all the pieces. There were bits of information spread all over the place. Too many assumptions that we would all just “know” certain things.

I’ve removed the assumptions and will show you exactly how to get CSS3 functionality pushed to IE browsers from your blog. Making it “pretty” for IE is now possible.

(When I wrote yesterday’s post CSS3 Is Here Now I hadn’t found this yet)

CSS3 PIE

The first thing you want to do is download the files you will need.  PIE for IE

You will find three files inside the zip file.

PIE.htc
PIE.php
PIE_uncompressed.htc

PIE.htc is probably the only one you will need.  But if after doing all the instructions here it still doesn’t show up change the behavior line to PIE.php

Upload these three files to your current theme directory.  Ex.  If you are using TwentyTen, upload them to wp-content/themes/twentyten/

Second, Where you have added the CSS3 styles you will need to add:

behavior: url(/wp-content/themes/yourthemedirectory/PIE.htc);
Followed by the CSS3 style WITHOUT THE -moz- in front of it.
Using yesterdays example that will look like this:

#calloutbox {
behavior: url(/wp-content/themes/yourthemedirectory/PIE.htc);
border-radius:10px 10px 10px 10px;
box-shadow:3px 3px 7px #333333;
-moz-border-radius:10px 10px 10px 10px;
-moz-box-shadow:3px 3px 7px #333333;
}

Do this where ever you have inserted CSS3 styles in your style.css file.

Final note. Don’t forget to put the leading “/” before the wp-content/ etc. If you do the styles will show up on the home page only. This was part of the digging out all the details.

Now you can have the same rounded corners and drop shadows in IE.

Not all CSS3 commands are supported with PIE (yet) but the basic ones you want to dress up your site are supported and easy to implement.

Now you can have your CSS3 styles in IE too.

Post Tags: ,

talking trash cans

LOL, Good One Frank

Why Wait to Use it?

I’ve started using some CSS3 styling here at the lab and on another site I’m currently developing.  I love it.  The formatting and “Eye Candy” ability with CSS3 is pretty amazing.  It used to be if you wanted rounded corners or drop shadows you had to create them as images and call them to be displayed.  Now you can add a couple lines of code and do both on the fly.  Want more curve, change a number, want a deeper shadow, change a number; it is that easy.

I’ll show you two examples in this post and provide the CSS3 behind the effect.  NOTE:  YOU WILL NOT SEE ANYTHING DIFFERENT IN IE.

You do have to have a “modern” full featured browser like Chrome, Firefox, Flock, or Safari (but safari requires it’s own code) in order to view CSS3.

Remember the post on add a callout box to your post?  I’ve added a little CSS3 styling to dress them up even more.  Below is a box and styling code.


This box has CSS3 Styles Added

  • CSS3 is easy to add
  • Add a drop shadow
  • Or Rounded corners
  • Even a gradient background
#calloutbox {
-moz-border-radius:10px 10px 10px 10px;
-moz-box-shadow:3px 3px 7px #333333;
background-image:-moz-repeating-linear-gradient(75% 75% 99deg, #EDEDED, #FFFFFF, #EDEDED 55%);
border:4px solid #990000;
float:right;
font-size:16px;
margin:1px 10px 10px;
padding:7px 10px 10px;
}

Can you spot what I put in this code segment that isn’t actually what is being displayed?

Using CSS3 For your Theme

I like it on the call out box, but I really like using CSS3 on the theme elements themselves.

My site Tucson Tired, uses quite a bit of CSS3 styling for the theme layout. All those rounded corners and drop shadows are CSS3.

Of course you have to be using Firefox or Chrome to see it.

Want to really appreciate the difference? Open it in IE and in FF and compare.

There are plenty of CSS3 tutorials and sytax sites out there for you to find the code to create many more effects than the ones mentioned here.

This is just an introduction.  Have some fun.  Apply some CSS three to your styles and really add some “Style“.

Post Tags: , ,

Twenty Ten 1.0 And All-In-One SEO Post Title Issue

If you don’t want your Title Tags looking screwed up and messing with your SEO then upgrade Twenty Ten to 1.1 or uncheck “Rewrite Titles” on the All-in-One options page.

Modifying Twenty Ten CSS

Typically when adding your own structures to a CSS file you put them at the end of the file.

Twenty Ten 1.1 Released

If you have already started making modifications to your copy of Twenty Ten you should backup the theme files and then install the latest version.

Site Title and Site Description

Twenty Ten allows for a long title and a short description. But what if your site is the other way around. You have a short title but want a long description.