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

Implemented A way to stop RTL replacements for specific rules

Discussion in 'Closed Suggestions' started by rellect, Jun 8, 2013.

  1. rellect

    rellect Well-Known Member

    Not sure if this should be considered as a bug or suggestion.

    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;

    I asked earlier in the Styling forum if there is a way to stop this behavior for specific rules.
    For instance, an element that will float to the left, both in RTL and LTR, and won't change into float:right;

    The only answer I got is to use different themes, but this is not practical.
  2. Mike

    Mike XenForo Developer Staff Member

    Prefix the rule with "rtl-raw.", so "rtl-raw.float".
    rellect and Andrej like this.
  3. rellect

    rellect Well-Known Member

    Nice, thanks.

Share This Page