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 make components relative-center.

    Help
    3
    9
    916
    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.
    • B
      bosconovitchi last edited by

      I read the CSS Positioning Classes.
      Here fixed-center and absolute-center ,but why has not relative-center.
      I need it.how to resolve it,pls.

      1 Reply Last reply Reply Quote 0
      • s.molinari
        s.molinari last edited by

        What is it you are trying to accomplish. There is most likely a way to do it. We just need to know what you want to get done.

        Scott

        B 1 Reply Last reply Reply Quote 1
        • B
          bosconovitchi @s.molinari last edited by

          @s-molinari
          I want the upload button’s position in it’s parentnode’s center
          0_1539910309658_b0bdaaff-99e7-4030-8b09-cdc79a2bad63-image.png

                  <q-card-actions>
                    <q-uploader multiple="true" url="url" />
                  </q-card-actions>
          

          I tried set the position relative,but can’t make it center.

          1 Reply Last reply Reply Quote 0
          • s.molinari
            s.molinari last edited by s.molinari

            Well. Ok. I don’t know how that would work myself. There are other “containers” holding that button in place. I personally don’t think that would make for an aesthetically pleasing UI to be honest. The only thing I can can suggest is controlling the width of the uploader itself, so the two buttons (together) are more towards the middle.

            https://jsfiddle.net/smolinari/wx2v6fcd/

            If someone else better at CSS can show bosconovitchi a solution, thanks in advance.

            Scott

            B 1 Reply Last reply Reply Quote 1
            • B
              bosconovitchi @s.molinari last edited by

              @s-molinari
              Thanks a lot ,and what mean of Scott,May i use that to reply.

              1 Reply Last reply Reply Quote 0
              • s.molinari
                s.molinari last edited by

                Scott is my first name. 🙂

                Scott

                B 1 Reply Last reply Reply Quote 0
                • B
                  bosconovitchi @s.molinari last edited by

                  @s-molinari
                  I see

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

                    try this:

                    <q-card class="row">
                      <q-card-main class="col-12">
                        <div class="row">
                          <div class="col offset-sm-3 col-sm-6">
                            <q-uploader color="tertiary" inverted stack-label="Stack Label" url="url" />
                          </div>    
                        </div>    
                      </q-card-main>
                    </q-card>
                    

                    https://quasar-framework.org/components/flex-css.html

                    s.molinari 1 Reply Last reply Reply Quote 0
                    • s.molinari
                      s.molinari @metalsadman last edited by

                      @metalsadman - That’s not quite what he was asking for, but still looks good. 🙂

                      Scott

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