css

Implementing A Pure CSS Collapsible ← Alligator.io

Collapsible widgets are a popular way to create sections of content that can contract and expand. There are a ton of different implementations out there. Here, thanks to checkbox input elements, label elements and the :checked pseudo-selector, we’ll be able create such widget without the need for extra JavaScript. Source: Implementing A Pure CSS Collapsible …

Implementing A Pure CSS Collapsible ← Alligator.io Read More »

Changing orientation via a stylesheet

This magic CSS code is able to change the orientation of the printed page:

For more information, take a look to the CSS Print Profile specification I thinked it was not possible to define printing orientation via a simple CSS! A very nice discovery indeed…