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

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

From: Praveen Puglia <praveenpuglia@gmail.com>
Date: Tue, 24 Nov 2015 14:51:01 +0530
Message-ID: <CANfatsp9swsOCGsJBOyKxSAefLyf10f5X_9PG1BmEb4KGfp51A@mail.gmail.com>
To: Sebastian Zartner <sebastianzartner@gmail.com>
Cc: Mats Blakstad <mats.gbproject@gmail.com>, www-style list <www-style@w3.org>
I agree. The logical properties are probably what you are looking for.

This should come in handy as well :
http://www.w3.org/TR/css-writing-modes-3/#logical-to-physical

On Tue, Nov 24, 2015 at 2:32 PM, Sebastian Zartner <
sebastianzartner@gmail.com> wrote:

> 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:
>
> https://drafts.csswg.org/css-logical-props/#float-clear
>
> Sebastian
>



-- 
__________________________
Thanks and Regards,
Praveen Puglia

Twitter <https://twitter.com/praveenpuglia> | Google Plus
<https://plus.google.com/u/0/+PraveenPuglia/posts>

*"Code is Poetry"*
Received on Tuesday, 24 November 2015 16:09:02 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 22:52:29 UTC