Supporto » Sviluppare con WordPress » detect device used

  • tubbadu

    (@tubbadu)



    Hi everyone! I need to add to my WP site a different css code, related to if it viewed with a pc or a smartphone.
    I need to write something like that:

         .post
           {
    	    if(user is using smartphone)
                {
                    width: 100%;
                }
                else
                {
                    width: 150%;
                }
           }

    how can I do that???
    thank you in advance! Bye!

Stai vedendo 1 repliche (di 1 totali)
Stai vedendo 1 repliche (di 1 totali)
  • Devi essere collegato per rispondere a questo topic.