Let the transformed child elements preserve the 3D transformations:
![]()
The transform-style property is not supported in any browser.
Chrome and Safari support an alternative, the -webkit-transform-style property.
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" |
| Property Value | Description |
|---|---|
| flat | The child elements will NOT preserve its 3D position |
| preserve-3d | The child elements will preserve its 3D position |
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 |
|---|