Skip to content
Partiellkorrekt
  • Fake IE
  • Home

Don't know where to look?

You can search all my notes here

Category: CSS

Add image proportions as a class to WordPress images

The following code will add the classes img-ratio-square, img-ratio-lt-square or img-ratio-gt-square to every image that’s printed using wp_get_attachment_image() <?php add_filter(‘wp_get_attachment_image_attributes’, function ($attr, $attachment, $size) {…

May 4, 2020
Insert SVG-background-images in SCSS inline

The following code inlines svg-code in a way that every current browser (including IE 10) will display it correctly. Once…

scss
svg
July 21, 2019  ·  April 14, 2020
Infinitely rotating element

.el { animation: rotating 1s infinite linear; } @keyframes rotating { from {transform:rotate(0deg);} to {transform:rotate(360deg);} }

animation
July 21, 2019
All Categories
CSS GIT Javascript React Native Wordpress
Tweaks
Work environment

About this page

This page contains a selection of the notes, I’m taking.

If you are involved in (web-) development, I hope you find some notes helpful.

Social media

  • Facebook
  • LinkedIn
  • GitHub
  • Instagram
Copyright © 2025 Abraham Przewodnik
  • Privacy Policy
  • Legal Disclosure