Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

CSS and Arabisation

Status
Not open for further replies.

Mariootje

Programmer
Aug 10, 2001
33
NL
Hai there,

I am working on a website that should have an English and an Arabic version. The English version is working out ok, but I have a problem when converting the Eglish version into Arabic.

My HTML-tag looks either like:
<html lang="en" dir="ltr"> --> English
or
<html lang="en" dir="rtl"> --> Arabic

The site 'flips' ok, but because of my css, my tables still lines out ltr and this is not what I want.

Does anyone know of a possibility to solve this problem?

I don't think that the 'unicode-bidi' property can be of help?

A possible solution would be to create an additional Arabic style sheet, but I do not prefer this, because I don't want to maintain an extra style sheet.

Hope to hear from you, regards,
Mario
 
The guys at W3 suggest you don't use CSS for this kinda thing:


Initially I was thinking you could just restyle it into DIV blocks - and then let the body direction take over... but it depends so much on the kind of data you have (since you could merely be using the tables for layout). In the end I have no answer at this stage - but maybe you could look to the link above and see if you can work with it somehow.

Cheers,
Jeff

[tt]Jeff's Page @ Code Couch
[/tt]

What is Javascript? FAQ216-6094
 
Thanks Jeff,

You are right that I am merely using tables for layout. I'll go and have a look at your link.

Cheers,
Mario
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top