How can I start using css3

I want to use css3 functions like

box-shadow

therefore for this

  • Do I need to include a special tag for css3 at the top of the page.
  • which browsers currently support.
  • what happens if you use many css3 functions and browse people in old brosers.cause any error or so
  • Should I really use it or not.
+4
source share
2 answers

Do I need to include a special tag for css3 at the top of the page

No

which browsers currently support

Most browsers support some CSS 3. No browser supports all CSS 3. When tracks can be used , when support for various functions was added.

what happens if you use many css3 functions and browse people in old brosers.cause any error or so

If the browser does not work solely with an error, CSS error handling rules will apply and the unrecognized thing will be ignored.

This is only a problem if another style (which is applicable) makes the content unreadable unless an unsupported style is applied. This can probably be circumvented sometimes by applying the same property twice. First with widely supported values, and then with less widely supported values: for example:

 color: white; background: url(blue_0.5_pixel.png); background: rgba(0%, 0%, 100%, 0.5); 

Should I really use it or not

This must be determined in each case.

+5
source

You use css3 like regular css - no special ads are required. The only thing to keep in mind is that there are browser versions with prefixes of many css3 styles that you want to use, and while most of them use style rules in the same way, there are several that have slightly different syntax ( for example, some older versions of Chrome use a different gradient syntax.) When using versions with a browser prefix, always use a version without a prefix, as well as following prefix versions. For instance:

 div { -webkit-border-radius: 5px; -moz-border-radius: 5px; border-radius: 5px; } 
0
source

All Articles