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 do I create a layout like this?

    Help
    3
    3
    792
    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.
    • N
      noogui last edited by

      I want to create a question and answer layout with four buttons and a question above. I don’t have idea how to leverage Quasar framework to come up with an image as shown in the picture. 1 question on top and four centered buttons with fixed sizes.
      0_1522515141507_quizapp.JPG

      This is what I have:

      <template>
      <q-layout
      ref=“layout”
      view=“hhh lPr fff”>
      <div align=“center” =>
      <div class="">
      <q-btn color=“secondary” size=“sm” label=""> choice A </q-btn>
      <q-btn color=“secondary” size=“sm” label=""> choice B</q-btn>
      </div>
      <div class="">
      <q-btn color=“secondary” size=“sm” label=""> choice C </q-btn>
      <q-btn color=“secondary” size=“sm” label=""> choice D</q-btn>
      </div>
      </div>
      </q-layout>
      </template>

      0_1522515447482_fail.JPG
      I’m not a lazy ass. just a frustrated beginner who wants to develop VueJS apps using Quasar

      1 Reply Last reply Reply Quote 0
      • C
        chbarr last edited by

        You must read the documentation about flex (http://quasar-framework.org/components/flex-css.html). After you will build complex layout easily.
        See an example:
        https://jsfiddle.net/tL0qcfuL/

        1 Reply Last reply Reply Quote 2
        • D
          donvie last edited by

          im not good to with flex

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