W3C home > Mailing lists > Public > www-style@w3.org > November 2015

Re: 'float: before' and 'float: after' for easier styling of RTL languages

From: Sebastian Zartner <sebastianzartner@gmail.com>
Date: Tue, 24 Nov 2015 10:02:25 +0100
Message-ID: <CAERejNbTfaBYiSMSzEx7TxvYbqCOYaKpnkvZcWCE-2NZTcs8qw@mail.gmail.com>
To: Mats Blakstad <mats.gbproject@gmail.com>
Cc: Praveen Puglia <praveenpuglia@gmail.com>, www-style list <www-style@w3.org>
On 24 November 2015 at 07:57, Mats Blakstad <mats.gbproject@gmail.com> wrote:
> Yes, but even if you have a RTL language it doesn't mean that you want
> everything on the page to float right. You just want to to float opposite of
> the LTR language.
> Let me give one example: A theme have 2 sidebars: One sidebar with menu
> ("First sidebar") and a second sidebar with advertisements ("Second
> sidebar").
> In LTR languages you want "first sidebar" to go to left, and second sidebar
> to go to right.
> In RTL languages you want "fist sidebar" to go to right, and second sidebar
> to go to left (opposite).
> You want one of them to float "first" and the second to float "last". Not to
> make everything in same direction, but everything in opposite directions.

Looks like what you're looking for is defined here:


Received on Tuesday, 24 November 2015 09:03:14 UTC

This archive was generated by hypermail 2.4.0 : Friday, 25 March 2022 10:08:58 UTC