Your CSS is fine… just the selector that is off.
You’ve used img .right
Note the space; this is the syntax for when .right
is a child element of img
(which isn’t possible, but back to the problem).
the img
is the element with the .right
class, so the syntax should be img.right
, without the space.
You could simply use .right
in your stylesheet too – the img
part isn’t necessary, except for when targeting specifically an img with the ‘right’ class applied within the markup. Other elements may have the ‘right’ class applied too, such as span.right