background preloader

TinyNav.js · Convert navigation to a select dropdown on small screen

TinyNav.js · Convert navigation to a select dropdown on small screen
Related:  CSS3

Prefix free: Break free from CSS vendor prefix hell! -prefix-free lets you use only unprefixed CSS properties everywhere. It works behind the scenes, adding the current browser’s prefix to any CSS code, only when it’s needed. The target browser support is IE9+, Opera 10+, Firefox 3.5+, Safari 4+ and Chrome on desktop and Mobile Safari, Android browser, Chrome and Opera Mobile on mobile. If it doesn’t work in any of those, it’s a bug so please report it. In older browsers like IE8, nothing will break, just properties won’t get prefixed. Test the prefixing that -prefix-free would do for this browser, by writing some CSS below: Properties/values etc that already have a prefix won’t be altered. It’s not ideal, but it’s a solution, until a more intuitive way to deal with these cases is added in -prefix-free. Please note that in unsupported browsers like IE8, no such class will be added. You can exclude a file from being prefixed by adding the data-noprefix attribute to the <link> or <style> element. Firefox (and IE?) Get the jQuery plugin now:

scottjehl/Respond Type Rendering Mix 13.4. Hacks y filtros Los diferentes navegadores y las diferentes versiones de cada navegador incluyen defectos y carencias en su implementación del estándar CSS 2.1. Algunos navegadores no soportan ciertas propiedades, otros las soportan a medias y otros ignoran el estándar e incorporan su propio comportamiento. De esta forma, diseñar una página compleja que presente un aspecto homogéneo en varios navegadores y varias versiones diferentes de cada navegador es una tarea que requiere mucho esfuerzo. Para facilitar la creación de hojas de estilos homogéneas, se han introducido los filtros y los hacks. A pesar de que utilizar filtros y hacks es una solución poco ortodoxa, en ocasiones es la única forma de conseguir que una página web muestre un aspecto idéntico en cualquier navegador. En primer lugar, los filtros permiten definir u ocultar ciertas reglas CSS para algunos navegadores específicos. El siguiente ejemplo carga la hoja de estilos basico_ie.css solamente para los navegadores de tipo Internet Explorer: <!

Flexible CSS cover images I recently included the option to add a large cover image, like the one above, to my posts. The source image is cropped, and below specific maximum dimensions it’s displayed at a predetermined aspect ratio. This post describes the implementation. Demo: Flexible CSS cover images Known support: Chrome, Firefox, Safari, Opera, IE 9+ Features The way that the cover image scales, and changes aspect ratio, is illustrated in the following diagram. The cover image component must: render at a fixed aspect ratio, unless specific maximum dimensions are exceeded;support different aspect ratios;support max-height and max-width;support different background images;display the image to either fill, or be contained within the component;center the image. Aspect ratio The aspect ratio of an empty, block-level element can be controlled by setting a percentage value for its padding-bottom or padding-top. Changing that padding value will change the aspect ratio. Maximum dimensions Background image Final result

Desarrollar Encuentra información general, fragmentos de código y vínculos con especificaciones, demos, páginas de referencia relacionadas y más. Animaciones, Fondos y bordes, Imágenes de borde, Adaptación de dispositivo, Exclusiones, Fuentes, Caja flexible, Degradados, Cuadrícula, División de palabras, Consultas de medios y escuchas, Multicolumna, Regiones, Sombras de texto Rendimiento e integración asincrónica, Caché de navegación anterior, Arrastrar y colocar, Historial, Observadores de mutación, Tiempo de navegación, Priorización de redes, Visibilidad de página, Compatibilidad con captura previa y representación previa, requestAnimationFrame, setImmediate, API de criptografía web, Trabajadores web, Mejoras de XMLHttpRequest

Multi-Device Layout Patterns Through fluid grids and media query adjustments, responsive design enables Web page layouts to adapt to a variety of screen sizes. As more designers embrace this technique, we're not only seeing a lot of innovation but the emergence of clear patterns as well. I cataloged what seem to be the most popular of these patterns for adaptable multi-device layouts. To get a sense of emerging responsive design layout patterns, I combed through all the examples curated on the Media Queries gallery site several times. Mostly Fluid The most popular pattern was perhaps surprisingly simple: a multi-column layout that introduces larger margins on big screens, relies on fluid grids and images to scale from large screens down to small screen sizes, and stacks columns vertically in its narrowest incarnations (illustrated below). I dubbed this pattern "mostly fluid" because the core structure of the layout really doesn't change until the smallest screen width. Column Drop Layout Shifter Tiny Tweaks Off Canvas

How to Center Anything with CSS Updated March 24, 2016. If you've ever had to build a webpage, you have likely needed to center something in that page. Using Cascading Style Sheets (CSS) is the proper way to center images, blocks of text, and even your entire layout for a Web page. Most of the properties for centering have been in CSS since version 1.0, and they work great with CSS3 and modern Web browsers. Let's take a look at some different ways to use CSS to center certain elements in a Web page. On Overview of Using CSS to Center in HTML Centering with CSS can be a challenge for beginning Web designers because there are so many different ways to accomplish this, but not all techniques work on every element. At a high level, you can use CSS to: Center textCenter a block-level element (like a division) continue reading below our video Play Video Center an imageVertically center a block or an image Centering Text with CSS The easiest thing to center on a webpage is text. <p class="center">This text is centered.

Related: