Show Output
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <title>Example of CSS3 transform-style Property</title> <style> img { /* Chrome, Safari, Opera */ -webkit-transform: rotate(30deg); -webkit-transform-style: preserve-3d; /* Firefox */ -moz-transform: rotate(30deg); -moz-transform-style: preserve-3d; /* IE 9 */ -ms-transform: rotate(30deg); -ms-transform-style: preserve-3d; /* Standard syntax */ transform: rotate(30deg); transform-style: preserve-3d; } .box{ margin: 50px; width:120px; height:110px; background: url("/examples/images/star-fish-transparent.png") no-repeat; } </style> </head> <body> <div class="box"> <img src="/examples/images/star-fish.png" alt="Star Fish"> </div> </body> </html>