No More Posting New Topics!

If you have a question or an issue, please start a thread in our Github Discussions Forum.
This forum is closed for new threads/ topics.

Navigation

    Quasar Framework

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search

    how to reorder a columns in Flex CSS?

    Help
    3
    3
    978
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • J
      jeimz173 last edited by

      Hi guys, i have this row which has many columns and what i want to achieve is… the first two column will reorder if i resize my browser or into any small screen like:

      from big screen it will be like:

       <div class="row">
        <div class="col-sm-6">first</div>
        <div class="col-sm-6">second</div>
        <div class="col-sm-6">third</div>
        <div class="col-sm-6">fourth</div>
        <div class="col-sm-6">fifth</div>
      </div>
      

      but then in smaller screen:

      <div class="row">
      <div class="col-sm-6">second</div>
        <div class="col-sm-6">first</div>
        <div class="col-sm-6">third</div>
        <div class="col-sm-6">fourth</div>
        <div class="col-sm-6">fifth</div>
      </div>
      

      in bootstrap, there is a class like push and pull for columns? do we have something like that… thank you!

      1 Reply Last reply Reply Quote 0
      • eleina
        eleina last edited by

        Hey! Maybe this will help you: http://quasar-framework.org/components/flex-css.html#Order
        You can set the order by adding a class like .order-first or add style='order: 2'

        1 Reply Last reply Reply Quote 2
        • rstoenescu
          rstoenescu Admin last edited by

          Add a media query in your CSS, and specify different orders through CSS order prop.

          1 Reply Last reply Reply Quote 0
          • First post
            Last post