Streaming live at 10am (PST)

RTL / LTR changes (CSS Combinators)


#1

Hi guys,

Is there a way to change/add/remove css when language or language direction changes?
I mean - when in English (LTR), a certain element floats to the left but when the site changes to a RTL language (Hebrew) the element floats to the right.

Thanx
Aviv


#2

I just doubled css rules. When you create English element, called, say, "paragraph", then you copy it to Hebrew version and create a new css rule for it before changes, say "paragraph-he". Then you make all your RTL changes.
Good luck!


#3

Tank you Ilan,
To apply this method I will have to duplicate all my content to an RTL section. Not an option in my case :confused:


#4

generally speaking, to do this:

.btn { float: left; }
.rtl .btn { float: right; }


#5

any idea? anyone? :weary:


#6

This topic was automatically closed after 60 days. New replies are no longer allowed.