Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7399049
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T04:00:28+00:00 2026-05-29T04:00:28+00:00

I have a webpage, lets take for example StackOverflow. every box looks like this:

  • 0

I have a webpage, lets take for example StackOverflow. every box looks like this:
english

so my question is, how can I manage to do, when someone writes the title of the message in english it will show the message from Left to Right like in the image up, and when he writes from Right to Left it will show it like this:
hebrew

it will automaticlly change the style of this box only. if its LTR use boxEnglish.css css for this spesific box and if its RTL, use boxHebrew.css for the spesific box. maybe I can give the user to choose RTL or LTR?

Thanks!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-29T04:00:29+00:00Added an answer on May 29, 2026 at 4:00 am

    In the example given, the title contains both English and Hebrew. It should not affect the overall directionality, as it has done in the example—are there real cases where this happens at StackOverflow? What should happen is just that the Hebrew part runs from right to left.

    For safety, though, an application that inserts user input should normally set unicode-bidi: embed (in CSS) on such elements, to avoid problems that may arise if the directionality of characters affects surrounding text.

    You cannot base styling on the inherent directionality of letters. I don’t see why you would even want to do that. But the last remark about user choice suggests that the real question might be something different. If you wish to properly localize an application, then you would need to consider overall directionality as well, but that’s a different issue.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

The webpage in question looks like this: // The Header // /* */ /*
I have a webpage (say www.example.com/a.asp) .. I am having an iframe in this
I have a script element in my webpage, something like this: <script id=myscript></script> Now,
Lets say I have a header banner on a webpage I'm about to print.
Lets say that you have either URL or a link on a webpage that
1) This issue involves just one html webpage, lets call it ajax.html. 2) I
Lets say I have a database table called Scrape possibly setup like: UserID (int)
I have one webpage (lets call it A.html). A.html has some javascript which switches
Lets say I have a question named Q1 with 4 radio answers: Q1: a)
Lets say I have a webpage, and all I'm interested is the div with

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.