1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

RTL related question

Discussion in 'Styling and Customization Questions' started by rellect, Jun 8, 2013.

  1. rellect

    rellect Well-Known Member

    Hello,

    I've noticed that left and right in css templates are automatically replaced once you change to RTL language.
    For example, float: right; is automatically replaced with float: left;

    My question is how to cancel this behavior for specific rule?
    For instance, an element that I want it to float to the left, both in RTL and LTR.
     
  2. ibnesayeed

    ibnesayeed Well-Known Member

    You will have different themes for LTR and RTL languages, right?
    If so, then you can simply modify the style properties of particular element. If you don't find style property easily then you can put your CSS override in EXTRA.css file of particular theme. But keep in mind that swapping of left and right properties/values happens in EXTRA.css file as well. Hence override it carefully. :)
     
  3. rellect

    rellect Well-Known Member

    It's one theme that need to be supported in both LTR and RTL.
     
  4. ibnesayeed

    ibnesayeed Well-Known Member

    I am not aware of a workaround available in XenForo as such. Probably some template modification with hard-coded conditionals will work. I would rather prefer suggesting a more modern approach for bi-directional support once the XenForo-1.2 is generally available. I have made a similar suggestion in another framework earlier.
     
  5. rellect

    rellect Well-Known Member

    Thanks. I guess I'll report about that as well, if it's not reported already.
     
  6. ibnesayeed

    ibnesayeed Well-Known Member

    It should not be a report but a suggestion instead. :)
     

Share This Page