Skip to content
Mario Hernandez
  • Home
  • About
  • Blog
  • Contact

Blog

  • November 10, 2023

    Image resolution switching using srcset and sizes attributes

    Resolution switching uses identical images that are simply larger or smaller based on the device but retain the same aspect ratio and cropping settings.

  • November 3, 2023

    Art Direction using the picture HTML element

    In the context of responsive images, art direction is the ability to display differently-cropped images based on the device size.

  • October 27, 2023

    Responsive images in Drupal - a series

    In this seven-part guide I cover everything you need to know about responsive images and how to manage them in a Drupal site.

  • September 27, 2023

    Drupal base path

    There are times when building a Drupal site you need to dynamically point to an asset or resource that may not be saved in the database but instead is located somewhere in the site's file system.

  • September 4, 2021

    Five principles for building better components

    With great power comes great responsibility.

Previous posts Next posts
  • Instagram
  • Twitter
  • Github
  • LinkedIn

Copyright © 2024 • Mario Hernandez