Patrick Aljord wrote:
> hey all,
> 
> My site in Arabic from right to left works great. But if I want to use
> some ltr strings in English, it messes up with my parenthesis like in
> this list:
> 
> http://www.democralist.com/lists/show/61
> 
> Check out the first two items of the list, the parenthesis are wrong.
> The problem is that the list is generated from the database so there
> is no way to guess if it's displaying arabic rtl or english ltr. Any
> idea how to solve this?

Since your site is in Arabic, you should add dir="rtl" to the <html> element.
Like this:

   <html dir="rtl">

That should solve most of your bidi problems.

Please *do not* use CSS's 'direction' property for this. Because it is so
closely tied to the content and so necessary to the readability of the
document, bidi information should be embedded in the document with the
(X)HTML 'dir' attribute. (The CSS 2.1 spec says as much in section 9.10.[1])

[1] http://www.w3.org/TR/CSS21/visuren.html#direction

~fantasai
______________________________________________________________________
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
IE7 information -- http://css-discuss.incutio.com/?page=IE7
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/

Reply via email to