W3Schools.com

CSS Reference

CSS Reference
CSS Selectors
CSS Reference Aural
CSS Web Safe Fonts
CSS Units
CSS Colors
CSS Color Values
CSS Color Names
CSS Color HEX
CSS3 Browser Support

CSS Properties

CSS3 transform-style Property

CSS Reference Complete CSS Reference

Example

Let the transformed child elements preserve the 3D transformations:

div
{
transform: rotateY(60deg);
transform-style: preserve-3d;
-webkit-transform: rotateY(60deg); /* Safari and Chrome */
-webkit-transform-style: preserve-3d; /* Safari and Chrome */
}

Try it yourself »

Browser Support

Internet Explorer Firefox Opera Google Chrome Safari

The transform-style property is not supported in any browser.

Chrome and Safari support an alternative, the -webkit-transform-style property.


Definition and Usage

The transform-style property specifies how nested elements are rendered in 3D space.

Note: This property must be used together with the transform property.

For Chrome and Safari users: To better understand the transform-style property, view a demo.

Default value: flat
Inherited: no
Version: CSS3
JavaScript syntax: object.style.transformStyle="preserve-3d"


Syntax

transform-style: flat|preserve-3d;

Property Value Description
flat The child elements will NOT preserve its 3D position
preserve-3d The child elements will preserve its 3D position


CSS Reference Complete CSS Reference
WEB HOSTING
Best Web Hosting
PHP MySQL Hosting
Best Hosting Coupons
UK Reseller Hosting
Cloud Hosting
Top Web Hosting
$3.98 Unlimited Hosting
Premium Website Design
WEB BUILDING
Download XML Editor
FREE Website BUILDER
Best Website Templates Top CSS Templates
CREATE HTML Websites
EASY WEBSITE BUILDER
W3SCHOOLS EXAMS
Get Certified in:
HTML, CSS, JavaScript, XML, PHP, and ASP
W3SCHOOLS BOOKS
New Books:
HTML, CSS
JavaScript, and Ajax
STATISTICS
Browser Statistics
Browser OS
Browser Display
SHARE THIS PAGE