How to Keep a Photo and Caption Together in a Document
Question details
The user wants to ensure an inserted image and its corresponding text caption stay linked and move together when document formatting or layout changes occur.

- Product
- Word Processor
- Device & OS
- not provided
- Scenario
- Adding images with descriptive captions to a document and editing the surrounding text without breaking the layout.
- Observed behavior
- Without proper grouping, the photo and caption separate across different pages or paragraphs as the document layout shifts.
Ensure your image is already inserted into the document and that you have finalized the exact wording for your caption before grouping them.
Use a Text Box to Group the Photo and Caption
Placing both the image and the text inside a single text box is the most reliable way to ensure they move together as a single unit.
By containerizing both elements, the word processor treats them as a single object, preventing pagination from splitting them apart.
Go to the 'Insert' tab on the top ribbon and select 'Text Box'. Draw a text box large enough to hold your photo and caption.
Click inside the text box, navigate back to the 'Insert' tab, select 'Pictures', and choose your photo to place it inside.
Press the 'Enter' key after the image and type your caption text directly beneath the photo within the same text box.
Select the text box, click the 'Layout Options' icon that appears nearby, and choose a wrapping style like 'In Line with Text' or 'Square' so the box moves smoothly with your document.
Right-click the outer edge of the text box, select 'Format Object' or 'Format Shape', and set the 'Line' color to 'No Line' to hide the border.

Group the Image and Caption as Objects
If your image and text box are both floating objects, you can group them together so they function as one.
Insert the Photo and Caption into a Single-Cell Table
Tables provide a rigid structure that prevents elements from separating, making it a great alternative for strict document layouts.
Easily Manage Images and Captions with WPS Writer
WPS Writer offers an intuitive interface to seamlessly group images, insert captions, and lock elements together. It provides powerful layout options to ensure your document looks professional and elements never separate unexpectedly.
- 1. Open Your Document: Launch WPS Writer, open your document, and select the image you have inserted.
- 2. Use the Insert Caption Tool: Right-click the image and select 'Insert Caption' from the menu. Fill in your descriptive text in the dialog box, and WPS will automatically attach it below the image.
- 3. Group with a Text Box: Alternatively, use the 'Insert' > 'Text Box' feature to encapsulate both the image and the text, then set the shape outline to 'No Line' for a flawless presentation.

Frequently Asked Questions
Why does my caption move to the next page without the picture?
This happens because the word processor treats the image and caption as separate paragraphs. If the text preceding the image expands, the caption gets pushed to the next page. Grouping them inside a text box or table cell forces the software to treat them as a single, unbreakable block.
Can I use paragraph formatting to keep the photo and caption together?
Yes. If your image is formatted 'In line with text', highlight the paragraph containing the image, go to Paragraph settings, and check the 'Keep with next' option under the Line and Page Breaks tab. This instructs the application to keep the image and the immediately following caption paragraph on the same page.
How do I add a caption automatically in a document?
Most modern document editors, including WPS Writer, feature an automated caption tool. Right-click your image and select 'Insert Caption'. This allows you to add numbered labels (e.g., Figure 1) that stay linked to the image logically within the document's structure.




