Page 2 of 2 FirstFirst 12
Results 11 to 12 of 12

Thread: display: div; direction: rtl;... screwing up certain characters: !?. etc.

  1. #11
    Join Date
    Sep 2007
    Location
    The Netherlands
    Posts
    1,820
    Thanks
    49
    Thanked 237 Times in 230 Posts
    Blog Entries
    56

    Default

    I've done some research on the matter and found that punctuation marks are placed to the left of the text (when the writing direction is right-to-left) because that's their correct position for languages written right to left (like Hebrew). When you want them to the right of the text, just add ‎ to the end of the word, after the punctuation mark. See also https://dotancohen.com/howto/rtl_right_to_left.html
    So gib65's original code should have been:
    Code:
    <html>
    <head></head>
    <body>
    <center>
    <div style="width: 100px; margin: auto; display: flex; direction: rtl; background-color: pink;">
    <span style="margin: auto;">Hola!&lrm;</span>
    </div>
    </center>
    </body>
    </html>
    Last edited by molendijk; 06-13-2018 at 02:04 PM.

  2. #12
    Join Date
    Nov 2014
    Location
    On A Scottish Island
    Posts
    482
    Thanks
    0
    Thanked 61 Times in 57 Posts

    Default

    Quote Originally Posted by gib65 View Post
    "...or do you want Hola! to be aligned to the right of it's container?"

    ^ Yes, that.
    If that is really what you want to achieve, then the correct solution is:

    Code:
    text-align; right;

Similar Threads

  1. gAjax RSS Feeds Displayer - display more feed characters
    By cxcskiing in forum Dynamic Drive scripts help
    Replies: 5
    Last Post: 07-25-2014, 06:03 PM
  2. Resolved Special characters in text don't display
    By Doomtomb in forum HTML
    Replies: 7
    Last Post: 04-20-2010, 02:40 AM
  3. Replies: 2
    Last Post: 02-03-2009, 10:45 PM
  4. Replies: 0
    Last Post: 01-18-2008, 04:00 PM
  5. Weird characters in the display of rss feed
    By soggy in forum Dynamic Drive scripts help
    Replies: 1
    Last Post: 12-14-2006, 07:17 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •