Click here to Skip to main content
15,903,681 members
Articles / Web Development / HTML

Making Text Upside down using CSS

Rate me:
Please Sign up or sign in to vote.
4.95/5 (28 votes)
25 Nov 2011CPOL 127.5K   20   30
Making Text Upside down using CSS


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


<title>Text Up side down</title>
<style type="text/css">
	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; 
<div class="txtUpsideDown">Test message</div>

Browser Compatibility

I have tested this script in the following Web browsers:

  • Internet Explorer
  • Mozilla Firefox
  • Google Chrome
  • Safari
  • Opera



This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

Written By
Team Leader
India India
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions

GeneralMy vote of 3 Pin
Girish Balanagu17-Feb-13 19:20
Girish Balanagu17-Feb-13 19:20 
GeneralRe: My vote of 3 Pin
thatraja18-Feb-13 10:15
professionalthatraja18-Feb-13 10:15 
GeneralRe: Cheers. :) Pin
RaisKazi21-Dec-11 0:41
RaisKazi21-Dec-11 0:41 
GeneralRe: Yes Unicode char broken in this site... Pin
ShilpiP13-Mar-11 20:45
ShilpiP13-Mar-11 20:45 
GeneralRe: But it looks like broken(I mean that site convert things som... Pin
thatraja10-Mar-11 7:35
professionalthatraja10-Mar-11 7:35 
GeneralRe: ?d??uo? buiz??? (: ??i ?ob Pin
ShilpiP10-Mar-11 7:26
ShilpiP10-Mar-11 7:26 
GeneralReason for my vote of 5 Nice one. Especially I liked you cov... Pin
RaisKazi20-Dec-11 19:45
RaisKazi20-Dec-11 19:45 
GeneralRe: But got excess points because you are a silver author now :) Pin
thatraja20-Dec-11 20:06
professionalthatraja20-Dec-11 20:06 
GeneralNice one! I too tried with CSS3 and Canvas. http://my.opera.... Pin
raju dasa2-Dec-11 8:08
raju dasa2-Dec-11 8:08 
Nice one! I too tried with CSS3 and Canvas.
GeneralReason for my vote of 5 very nice and concise. Thanks for sh... Pin
BrianBissell1-Dec-11 5:14
BrianBissell1-Dec-11 5:14 
GeneralReason for my vote of 5 Good one. Pin
RaisKazi29-Nov-11 1:15
RaisKazi29-Nov-11 1:15 
GeneralReason for my vote of 5 Fantastic! I can see some good nefar... Pin
Dr.Walt Fair, PE26-Sep-11 13:25
professionalDr.Walt Fair, PE26-Sep-11 13:25 
GeneralReason for my vote of 5 Very Nice...! Pin
Issac99915-Mar-11 21:51
Issac99915-Mar-11 21:51 
GeneralReason for my vote of 5 very good! Pin
GreenRecover14-Mar-11 23:26
GreenRecover14-Mar-11 23:26 
GeneralReason for my vote of 5 Its really nice. I create the html p... Pin
ShilpiP10-Mar-11 0:59
ShilpiP10-Mar-11 0:59 
GeneralRe: Actually In web you can find some sites for this kind of dif... Pin
thatraja10-Mar-11 3:34
professionalthatraja10-Mar-11 3:34 
GeneralReason for my vote of 5 Nice one! Pin
Manfred Rudolf Bihy9-Mar-11 12:11
professionalManfred Rudolf Bihy9-Mar-11 12:11 
GeneralGreat to see I am the inspiration for it, 5. Pin
PompeyBoy38-Mar-11 22:05
PompeyBoy38-Mar-11 22:05 
GeneralReason for my vote of 5 5. Glad to see I am the inspiration ... Pin
PompeyBoy38-Mar-11 22:04
PompeyBoy38-Mar-11 22:04 
GeneralRe: /*Glad to see I am the inspiration for it. Does that mean I ... Pin
thatraja10-Mar-11 3:32
professionalthatraja10-Mar-11 3:32 
GeneralReason for my vote of 5 nice one, but I have an alternate to... Pin
Prerak Patel8-Mar-11 16:25
professionalPrerak Patel8-Mar-11 16:25 
General????b si ???? Pin
Prerak Patel8-Mar-11 16:23
professionalPrerak Patel8-Mar-11 16:23 
GeneralReason for my vote of 5 Nice one man. But IE9 should it cra... Pin
Venkatesh Mookkan8-Mar-11 15:55
Venkatesh Mookkan8-Mar-11 15:55 
GeneralRe: But I didn't check in IE9 but tested in IE 7 &amp; 8. Welcom... Pin
thatraja10-Mar-11 3:30
professionalthatraja10-Mar-11 3:30 
GeneralReason for my vote of 5 This is Uber! 5* Pin
DrABELL8-Mar-11 15:16
DrABELL8-Mar-11 15:16 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.