Reverse Text With CSS (32 Very Special Hex Digits)
Sometimes you wake up and feel that big things are moving around you. You follow the news and find that people are uniting over something simple as a number. You read about people calling them rebels.
I think this is a good time to show a little CSS trick.
Let me present two properties that together reverse a string of text: direction and unicode-bidi:
<p style="direction: rtl; unicode-bidi: bidi-override;">
0C 88 65 36 5C 65 14 8D B5 3E 47 D9 20 11 9F 90
</p>
The result, when this is posted on your blog (*hint*) is the following:
0C 88 65 36 5C 65 14 8D B5 3E 47 D9 20 11 9F 90
Am I a CSS rebel now? And are they going to sue me on the basis of my HTML or my CSS?
Emil Stenström is an interface developer and internet strategist working as a consultant for Valtech in Sweden. As an interface developer he blogs about HTML, CSS and Javascript, and how to make browsers do what you want. As an internet strategist he blogs about how to make best use of the web, using all the new technologies optimally. Emil is a DZone MVB and is not an employee of DZone and has posted 4 posts at DZone.
- Login or register to post comments
- 1546 reads
- Printer-friendly version
(Note: Opinions expressed in this article and its replies are the opinions of their respective authors and not those of DZone, Inc.)









