perspective property

Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.
This topic has not yet been rated - Rate this topic

Gets or sets a value that represents the perspective from which all child elements of the object are viewed.

This property is read/write.

CSS Transforms Module, Level 3, Section 10Internet Explorer 10

Syntax

perspective: none | <number>

Property values

A value that represents the perspective, in pixels, from which to view each child element.

none

Default. No perspective declared.

number

A floating-point number, followed by a relative units designator ("px"), that indicates the depth of the perspective. For more information about supported length units, see CSS Values and Units.

CSS information

Applies Toblock-level and inline-level elements
Mediavisual
Inheritedno
Initial Valuenone

Standards information

Remarks

This property does not affect how the object is rendered.

This property is only applied to child elements that have a transform specified.

The object is the projection plane for the child elements.

This property specifies that each child is rendered relative to the specified perspective, whereas the perspective function of the transform property specifies that each child is rendered from the same perspective.

The following images illustrate the difference between this property and the perspective function of the transform property.

Object with a CSS3 3D Transforms transform property and perspective functionObject with a CSS3 3D Transforms perspective property

Do not use the Microsoft vendor prefix ("-ms-") before the perspective property. It is supported unprefixed in Internet Explorer 10 and later.

To learn more about Cascading Style Sheets (CSS) transforms in Windows Internet Explorer, see How to bring your webpage to life with CSS transforms, transitions, and animations.

See also

CSSStyleDeclaration
currentStyle
style
a
abbr
acronym
b
bdo
big
br
cite
code
dfn
em
i
img
input
kbd
label
q
samp
select
small
span
strong
sub
sup
textArea
tt
var
address
blockQuote
div
dl
fieldSet
form
noFrames
noScript
ol
p
pre
table
ul
dd
dt
li
tBody
td
tFoot
th
tHead
tr
button
del
ins
map
object
script
transform
How to bring your webpage to life with CSS transforms, transitions, and animations

 

 

Send comments about this topic to Microsoft

Build date: 11/29/2012

Did you find this helpful?
(1500 characters remaining)

Community Additions

© 2013 Microsoft. All rights reserved.