If the frame and its content are different sizes, you can use the Fitting commands to achieve a perfect fit.
Frame alignment options apply to frames that contain either a graphic or another text frame (text frames nested within another frame), but they do not affect paragraphs inside a text frame—you control alignment and positioning of text itself using the Text Frame Options command and the Paragraph, Paragraph Styles, and Story panels.
Fit an object to its frame
-
Select the frame of the object.
-
Choose Object > Fitting and one of the following options:
Fill Frame Proportionally
Resizes content to fill the entire frame while preserving the content’s proportions. The frame’s dimensions are not changed. If the content and the frame have different proportions, some of the content will be cropped by the bounding box of the frame.
Fit Content Proportionally
Resizes content to fit a frame while preserving the content proportions. The frame’s dimensions are not changed. If the content and the frame have different proportions, some empty space will result.
Content-Aware Fit
Automatically fits an image inside the frame based on the image content and frame size. The frame's dimensions are not changed. To make this as the default frame fitting option, go to Preferences > General and select Make Content-Aware Fit the default frame fitting option.
Note:- Content-Aware Fit removes the transformations, such as Scale, Rotate, Flip, or Shear, applied to the image. However, the transformations applied to the frame are not removed.
- Content-Aware Fit is not available on Windows 32-bit.
Fit Frame To Content
Resizes a frame to fit its content. The frame’s proportions are altered to match the content proportions, if necessary. This is useful for resetting a graphics frame that you accidentally altered.
Fit Content To Frame
Resizes content to fit a frame and allows the content proportions to be changed. The frame will not change, but the content may appear to be stretched if the content and the frame have different proportions.