views:

111

answers:

4

I'm using CSS 3 features like "rounded corner" or "shadow box". IMHO These are fantastic features for people like me with no graphics knowledge. But, i've noticed, IE 7-8 not support CSS 3.

So i'm asking you: is there a way to "enable" some features maybe with some javascript functions to include in my html file ? Thank you!

+2  A: 

ie7-js fixes certain CSS issues. I don't think the ones you named are included, but they might be in the future.

Matthew Flaschen
Hm. I didn't know about ie9.js
D_N
A: 

The easiest is probably Chrome Frame, but you have to convince your users to install it.

Brendan Long
He asked about "javascript functions to include". That's a far cry from a half megabyte .exe.
Matthew Flaschen
I was going to suggest that option too but am glad you did first! :)
John K
I didn't say it was a great idea, just one option :p
Brendan Long
Technically, he said "maybe with some javascript", implying that there's some flexibility there... :)
Jeff
It's a little harsh to make anyone using less than IE9 install ChromeFrame... that said, it's definitely been my solution for "supporting" IE6 on a site or two (with the client's permission, of course).
Gabriel Hurley
+3  A: 

Take a look at HTML5 enabling script, jQuery Dropshadows and corners.
Also you might want to read a good article on making Dropshadows, Curvy corners & gradients using jQuery.

Sepehr Lajevardi
+1  A: 

You cannot enable them, but you can detect them and mimic them using a good shot of JavaScript. Modernizr can be used to detect HTML5 and CSS3 features so that you can control the behaviour better. You can also use jQuery Corner and jQuery Text-Shadow plugins to progressively enhance the browsers not supporting them.

Note that HTML5 and CSS3 are not coupled to each other.

BalusC
Modernizr specifically DOES NOT add features. Only detects them. From their own website: "Modernizr does not add missing functionality to browsers; instead, it detects native availability of features and offers you a way to maintain a fine level of control over your site regardless of a browser’s capabilities."
Gabriel Hurley
@Gabriel: you're right, I didn't think what I was telling.
BalusC
I figured it was an oversight, hence no downvote ;-)
Gabriel Hurley