It’s only taken me about 25 years but finally managed to float an image to the bottom right of a block of a text (in more than one browser).
The caveat seems to be that the image must be square and a fixed size or the browser seem to forget the height.
Tested in latest Chrome, Firefox, Edge, Safari and IOS and seems to work reasonably well.
It may be useful to someone so I posted it here for posterity
While I’m here I noticed that there was a relatively new property called initial-letter
for the ::first-letter
pseudo class that allows for the number of lines spanned to be defined.
::first-letter {
initial-letter: 5;
}
(The last example in that demo shows me abusing the technique to create a floated background image without using float. As far as I know that’s impossible by any other method that will allow wrapping text.)
Please have a play around and point out any improvements or pitfalls with both the above.
(**NOTE:**There is still the slightly buggy behaviour of floats where text will wrap outside the principal box hence the extra padding. This has always been present in content that wraps floats depending on where the last word wraps.)