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 can i make width to fit device scren?

    Help
    2
    3
    113
    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

      When i dwared web page to fit mobile phone and desktop.I found it can’t work on tow device by set px or em。I want it work like this .![alt text]sample.png How can i resolve the problem

      I 1 Reply Last reply Reply Quote 0
      • I
        Ilia @bosconovitchi last edited by

        @bosconovitchi In styles for div containing the content try:

        .container {
          width: 100%;
          max-width: 500px;
        }
        

        Meta tag would be useful in <head> as well (if you do not use that already):

        <meta name="viewport" content="user-scalable=no,initial-scale=1,maximum-scale=1,minimum-scale=1,width=device-width">
        
        B 1 Reply Last reply Reply Quote 0
        • B
          bosconovitchi @Ilia last edited by

          @Ilia Thanks, it works.Happy new year Ilia.

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