Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #575214

    Hi,

    When I’m using columns in a RTL site, in responsive mode, when the column are one below the other, the order is left to right (but in RTL it should be the opposite).

    In order to solve it, I put the column left to right, but float them to right. like this:

    .page-id-3231 .avia-builder-el-2,
    .page-id-3231 .avia-builder-el-7,
    .page-id-3231 .avia-builder-el-12 { float: right; margin-left: 6%; }
    .page-id-3231 .avia-builder-el-17 { float: right; margin-left: 0; }

    I have 2 questions:
    1) Is there more elegant way to do this?
    2) The only way I found to control the columns via CSS is by using .avia-builder-el-#.
    This is not optimal, beause when I add element to the page, the number of the .avia-builder-el is changing.
    What is the right way to control the columns via CSS?

    Tnx.

    #575629

    Hi alonarad,

    Could you provide us with a link to the site in question so that we can take a closer look please?

    Thanks,
    Rikard

    #575778

    Please take a look here: http://romano-ci.com, under id=”4elements”

    Tnx.

    #576255

    Hi,

    I don’t think there’s an easier solution for this unfortunately, and like you say, using the builder class is not optimal. Maybe you could try child selectors instead? https://css-tricks.com/how-nth-child-works/

    Thanks,
    Rikard

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.