Filed under CSS

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?

Feel free to leave a comment, or subscribe to my feed.

related

List some related articles:

You might want to browse all articles.

linkback

These people have linked to this article:

To get a link in this list: make sure your blogging software supports trackbacks or pingbacks and simply link to this article like this:

<a href="http://friendlybit.com/css/reverse-text-with-css-32-very-special-hex-digits/">Reverse text with CSS (32 very special hex digits)</a>

You can also trackback by copying this link, and pasting it into a trackback field in your blogging tool.

about

Author: Emil Stenström

Emil Stenström blogs about web development. Posts are bi-weekly.

To the about section

comments

What do you think about this article? I’d love to hear your view!

Scroll to comment box.

  1. grimman 6 May

    01

    Ooh, seems like this could be useful in one app or another. ;)

  2. jesse 9 May

    02

    omg, this is the best one ever.

  3. Slap Happy 11 May

    03

    Um, the Diggers aren’t rebels. The Diggers are lawbreakers. This is the lamest thing to ever be considered a revolution. Ever. It’s an HD-DVD encryption key! Woo! Let’s see the so-called “rebels” actually make a positive difference in the world. Now that would be a revolution.

  4. Biscuitrat 30 May

    04

    Very sneaky; it took me a second :P

If you want to you can follow the disussion through a comment feed.

add comment

This is the place where you get to say your opinion about this article, use it well. Formating with HTML is allowed. A red asterisk means that the following field is required.

Comment Form




Comment Form