Element rotation in CSS

Source: Internet
Author: User

Transferred from: Terminal

Let's take a look at this image:

This is a date display, where 2009 is achieved through element rotation.

Here: http://snook.ca/archives/html_and_css/css-text-rotation (Translation: http://bbs.lampbrother.net/thread-13138-1-1.html)

Here is htmlCode:

View Source

Print? 1. <Div> 2. <Span> 31 </Span> 3. <Span> July </Span> 4. <Span> 2009 </Span> 5. </Div>

Rotating CSS:

View Source

print? 1. -WebKit-transform: rotate ( -90 deg ); // safari 4 +, google Chrome 1 + 2. -moz-transform: rotate ( -90 deg ); // firefox 3.5 + 3. filter: progid: DXImageTransform. microsoft. basicimage (rotation = 3 ); // ie

Although it is not part of css3, WebKit already has its own set of deformation attributes, and Mozilla is also following suit. Deformation contains many different types of values, but the most interesting and useful one is that rotation includes any rotation angle.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.