65.9K
CodeProject is changing. Read more.
Home

Making Text Upside down using CSS

starIconstarIconstarIconstarIcon
emptyStarIcon
starIcon

4.95/5 (27 votes)

Mar 8, 2011

CPOL
viewsIcon

131504

Making Text Upside down using CSS

Description

After seeing this message by PompeyBoy3, I wanted the same in CSS, so I have tried & am now posting here.

Code

<html>
<head>
<title>Text Up side down</title>
<style type="text/css">
.txtUpsideDown 
{
	filter:  progid:DXImageTransform.Microsoft.BasicImage(rotation=2);  /* IE6,IE7 */
	ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=2)"; /* IE8 */
	-moz-transform: rotate(-180deg);  /* FF3.5+ */
	-o-transform: rotate(-180deg);  /* Opera 10.5 */
	-webkit-transform: rotate(-180deg);  /* Safari 3.1+, Chrome */
	position: absolute; 
}
</style>
</head>
<body>
Test message
</body> </html>

Browser Compatibility

I have tested this script in the following Web browsers:
  • Internet Explorer
  • Mozilla Firefox
  • Google Chrome
  • Safari
  • Opera

Reference

http://css3please.com/