As you stated, you’re looking to add this to various images where you do not know the previous images width or height. You’ll probably need to incorporate some jQuery to figure out the width of the image and then apply a margin based on that figure on the fly. It’s definitely possible to do, but not just with CSS.
Viewing 2 posts - 1 through 2 (of 2 total)
The forum ‘CSS’ is closed to new topics and replies.