object-position are my two favourite CSS properties lately. They give developers control over the content inside an
img or a
video similar to the way that we can manipulate the content of a
When you upload an image through the WordPress media uploader and then insert it into the editor, it comes with width and height attributes. These are normally desirable, as it assists the browser in making the appropriate room for the …
Make a div that is the exact size of the image. This div will have a background image applied to it of the second image. Then put an inline image inside it.
<div id="kitten" style="background-image: url(dog.jpg);"> <img src="/images/kitten.jpg" alt="Kitten" />