Our advanced systems detected you're trying to access porcupine colors by an old and deprecated browser like Internet Explorer 7 or even 6! This website uses some technologies which can't be detected from such an outdated software.
This is an experiment with CSS3 ingredients. What we want to achieve is a smooth spinning and fading out/in effect with two icons.
Both icons hold the same position. One of them stands below the other and it is opaque. The other is transparent. On rollover both start spinning and switch transparency in one second.
For h1 we define the size of the icons and the spinning, which is linear and lasts one second.
Both span tags include the icons. We also define a linear animation for one second, but this time it is about the fade out/fade in effect.
As I mentioned above this is just an experiment. If you have any simpler way to achieve the same result (no, without JavaScript please), do share your ideas in the comments below.
UPDATE: Firefox has an issue with the effect which breaks there. Add text-align: left; for h1 to pass it by.
CSS hacks are lines of code inside a CSS file which replace certain code with another in order to achieve the best possible design for all browsers.
Actually most of the hacks have to do with Internet Explorer 6 and below. Everybody knows that IE has caused the most troubles in Web design and it still does.
The following hacks are simple solutions which can be easily applied, not a complete guide to CSS hacks.
This hack is based on the fact that IE6 (and below) cannot treat many properties in a rule. Thus, IE will read the second property and it will ignore the first, while in the modern browsers the !important will prevail.
Since old IE cannot treats dotted lines as dashed, dotted borders look ugly. Thanks to this hack we have an at least solid line as a border for IE.
The first part of the code applies a rule and the second overrides it. This is something that old versions of IE understand.
So, as it happened before, the dotted border is bypassed by IE.
The child selector hack
html>body{
background: url(back.png);
}
This hack hides from old versions of IE the image back.png.
This happens thanks to the child selector “>” which cannot be recognized by IE. The modern browsers, including IE7, read it and apply the background image.
If this back.png image was a transparent one, this hack might have been a very convenient solution. As everybody knows transparent .png files are also not recognized by old IE.
The attribute selector hack
div[id="content"] {
background: url(back.png);
}
Like before, there is a selector, the attribute selector “[id=”...”]”, which means nothing to IE6 and below. The result is a background image which can be seen in modern browsers but not in old versions of IE.
Apart from these hacks there is another way to solve problems caused by Internet Explorer: the Conditional Comments. I wrote about them a short time ago. I can’t recommend the one solution or the other but little by little I find hacks more convenient for me.