Question posted by: RufusA@gmail.com
(Guest)
on
June 27th, 2008 07:19 PM
Is there any way of getting float statements, padding etc. to take
account of the directionality of a page (i.e. the direction:rtl )
For example I have an old simple web page that uses *shudder* tables
to lay out the images and text. If I wanted to create an Arabic
version of this page, I could simply add a rtl direction to the body,
translate the text, and hey-presto the images would automatically leap
to the opposite side to match the direction of the page.
In a standards based page, layed out using divs, and css based floats,
padding etc. whilst the text sticks itself to correct edge of the
object, the floats themselves don't change directionality.
So I then have to painstakingly revisit the css changing every
float:left for a float:right, every padding and margin needs also to
be flipped etc.
Acceptable when you have one or two pages, but a logistical nightmare
where there is a whole site to translate.
Is there a neat way of changing the directionality of floated objects
to match the text? Surely it can't be that uncommon for international
companies to translate their sites to languages with rtl text
direction!
Rufus.
Not the answer you were looking for? Post your question . . .
182,318 Experts ready to help you find a solution.
Sign up for a free account, or
Login (if you're already a member).