I’m also trying to get the text to wrap around each image.
I can’t figure it out. I encountered Chris Coyier’s guide on floats: https://css-tricks.com/all-about-floats/
So I tried swapping out the ‘display’ property value from ‘inline’ to ‘block’. No change. What am I doing wrong?
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
Viewing 2 posts - 1 through 2 (of 2 total)
The forum ‘CSS’ is closed to new topics and replies.