Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

75
Vistas
Is use inch measure proven stable for dynamic?

I try to create a website with mind size device. I overwhelmed with today device. the resolution that need to work with so many, and will increase with high resolution. but, the pychical dimension still same around 50mm - 70mm width for mobile. Is 1in unit stable to measure inch?

<div id="container">
            Iphone 4s dimension
</div>
<script>
function mmInPixel() {
    const e = document.createElement("div");
    e.style.width = "1in";
    document.body.appendChild(e);

    const pixel = (screen.width / ((screen.width / e.offsetWidth) * 2.54 * 10));
    document.body.removeChild(e);
    
    return pixel;
}

const container = document.getElementById("container");
const width = (mmInPixel() * 49);
const height = (mmInPixel() * 74);
container.style.width = `${width}px`;
container.style.height = `${height}px`;
container.style.backgroundColor = "black";
container.style.color = "white";
container.style.margin = "auto";
about 4 years ago · Juan Pablo Isaza
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda