• Skip to main content
  • Skip to search
    • Technologies Overview
    • HTML
    • CSS
    • JavaScript
    • Graphics
    • HTTP
    • APIs
    • Browser Extensions
    • MathML
    • Learn web development
    • Tutorials
    • References
    • Developer Guides
    • Accessibility
    • Game development
    • ...more docs
    • Send Feedback
    • Contribute to MDN
    • Report a content issue 🌐
    • Report a platform issue 🌐
  • Change language

auto

<< Volver

Resumen

Un valor computado automáticamente por el 'useragent.'

Usando el valor auto en cualquier propiedad, dejamos al navegador que calcule el valor requerido.


FIXME

Ejemplos

div {
   height: 600px;
   border: 1px solid #000;
}
div img {
   height: auto;
   border: 1px solid red;
}

Se utiliza en

  • overflow
  • cursor
  • width
  • marker-offset
  • margin
  • margin-* (left|bottom|top|right|start|end)
  • bottom
  • left
  • table-layout (en-US)
  • z-index
  • -moz-column-width (en-US)


Categorías Interwiki Languages

Last modified: Apr 17, 2021, by MDN contributors

Change your language
  • Web Technologies
  • Learn Web Development
  • About MDN
  • Feedback
  • About
  • MDN Web Docs Store
  • Contact Us
  • Firefox

MDN

Mozilla

© 2005-2021 Mozilla and individual contributors. Content is available under these licenses.

  • Terms
  • Privacy
  • Cookies