I currently have an image and text both horizontally centre aligned, and I have set both to be responsive. When I change the width of the browser the text pushes down, but the image is still top aligned. Is there a way to horizontal centre pin the image to the text so that the image moves as the text pushes down?

Original: Original

Shrink width: shrink

Ideal: ideal

bumped to the homepage by Community yesterday

This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.

Group the objects together and then pin them

We're looking for long answers that provide some explanation and context. Don't just give a one-line answer; explain why your answer is right, ideally with citations. Answers that don't include explanations may be removed.

  • This answer is really short. Is there anything you can add to it? – LateralTerminal Feb 14 at 19:13

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.