Proyectos
Ver en GitHub
ahume/selector-queries
Acerca de
Adjust the layout of an HTML element based on its width
Desarrollo web y de aplicacionesCrecimiento de estrellas medido
- in 24h
- 0
- in 7 days
- 0
- in 15 days
- 0
- in 1 month
- Recopilando historial
Cambios netos en períodos que se solapan, no totales diarios. Los datos no disponibles se dejan en blanco. Las estrellas indican interés, no calidad.
README.md
OriginalSelector queries and responsive containers
This script allows you to apply different class values to an HTML element based on its width. Use it as follows:
<div data-squery="min-width:400px=wide max-width:10em=small">
<p>Content here</p>
</div>
This will apply a class of wide when the element is wider than 400 pixels and a class of small when it is narrower than 10 ems. It works in all modern browsers back to and including IE6.
That's all.
Explorar proyectos relacionados
Cargando…