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

    [Solved] [V1] Q-Card Layout Issue

    Framework
    2
    5
    254
    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.
    • S
      Stanley last edited by Stanley

      Below is my demo.
      https://codepen.io/Stanley-549393092/pen/KOwwbv

      My scenario is: there are three cards on one row, the first and second are fixed witdh, I would like the third one to automatically fill the remaining space. But now as you can see, the third goes to the next row.
      Could you please do me a favor, thanks!

      metalsadman 1 Reply Last reply Reply Quote 0
      • metalsadman
        metalsadman @Stanley last edited by metalsadman

        @Stanley add a no-wrap class on your parent div wrapping the cards. https://codepen.io/metalsadman/pen/wVBMvw

        S 1 Reply Last reply Reply Quote 0
        • S
          Stanley @metalsadman last edited by

          @metalsadman Thanks! I found they are now with the same width. I would like, for example, the first card occupies 200px, the second one occupies 200px, and the third one occupies the remaining 100px because I set the max width 500px in the parent. Could you please have a look again?

          metalsadman 1 Reply Last reply Reply Quote 0
          • metalsadman
            metalsadman @Stanley last edited by

            @Stanley said in [V1] Q-Card Layout Issue:

            @metalsadman Thanks! I found they are now with the same width. I would like, for example, the first card occupies 200px, the second one occupies 200px, and the third one occupies the remaining 100px because I set the max width 500px in the parent. Could you please have a look again?

            updated https://codepen.io/metalsadman/pen/wVBMvw

            S 1 Reply Last reply Reply Quote 0
            • S
              Stanley @metalsadman last edited by

              @metalsadman Great, thanks a lot!

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