What is JotForm?
JotForm is a free online form builder which helps you create online forms without writing a single line of code. No sign-up required.

At JotForm, we want to make sure that you’re getting the online form builder help that you need. Our friendly customer support team is available 24/7.

We believe that if one user has a question, there could be more users who may have the same question. This is why many of our support forum threads are public and available to be searched and viewed. If you’d like help immediately, feel free to search for a similar question, or submit your question or concern.


  • Profile Image

    Unsure how to use media only screen codes

    Asked by betwrestling on March 29, 2017 at 01:13 AM

    With these media only screen codes..

    @media only screen and (max-device-width: 320px){

    @media only screen and (max-device-width: 640px){

    Do i need to put the codes in between both the 320px code as well as the 640px code? Or can i just put all the codes underneath both of them?

    What i mean is i currently have it set like this..

    @media only screen and (max-device-width: 320px){

    CODE HERE

    @media only screen and (max-device-width: 640px){

    SAME CODE HERE

     

    But i'm wondering whether i could put the code underneath both @media screen codes, like the following..

    @media only screen and (max-device-width: 320px){

    @media only screen and (max-device-width: 640px){

    CODE HERE

     

    Hope that makes sense!

  • Profile Image

    Answered by Ian on March 29, 2017 at 04:30 AM

    To understand how to write media queries please follow the articles :

    https://css-tricks.com/logic-in-media-queries/

    https://www.w3schools.com/css/css3_mediaqueries_ex.asp

    Hope this helps.