is now part of CreativePro.com!

*** From the Archives ***

This article is from May 5, 2011, and is no longer current.

Make an Object Style specify frame width

18

A request that I hear often is the ability to specify the width and height of a frame as part of an Object Style. Perhaps you’re using separate frames for pull quotes in the sidebar area of a magazine, and you want all these frames to be the same width. The trouble is, the Object Style Options dialog box has no controls for specifying frame dimensions…or does it? It turns out there’s a pretty slick way to specify the width of a frame (but not the height) as part of an object style.

Choose Text Frame General Options in the Object Style Options dialog box, and choose Fixed Column Width, and then specify the width you want your frame to be in the Column Width field.

Now, just create a text frame on your page by dragging with the Type tool. Make a small frame, any width, as long as it is narrower than the width you want. Then switch to the Selection tool and click on the Object Style you just created. The frame will automatically snap to the width you entered in the Object Style.

This will only work for text frames. But remember that you can switch a text frame to a graphic frame or contentless frame by choosing Object > Content.

Keith Gilbert is a design consultant, developer, educator, speaker, and author. His work has taken him throughout North America, Africa, Europe, and Asia. During his 35+ year career his clients have included Adobe, Apple, Target, Oracle, and the United Nations. He is the author of several popular titles for LinkedIn Learning, Adobe Press, and CreativePro. Find him at gilbertconsulting.com and on Twitter @gilbertconsult
  • Tim Hughes says:

    Very cool, I just know this will come in handy
    Cheers Keith

  • Guido Benigni says:

    But, if you just need something that is always the same (such a pullquote, or a caption, etc) isn’t it much simplier to create snippets? This way you can have always the same width, color, position, border, fill, corner effects, drop shadow, bla, bla, bla?
    Bad thing is that a snippet isn’t “scriptable”, as far as I know, and on the other side an object style is…

  • @Guido: Yes, I’d probably use a snippet for the example described, but I thought this hack was kinda cool, and might be useful for something sometime.

  • Dave says:

    Yup this will com in handy. Thanks

  • Eugene Tyson says:

    It’s not really a hack is it :) it’s more of a very good feature very well hidden :)

    Snippets are alright – but I already have my pullquotes all set up to apply the paragraph style with the object style so now all I have to do is set that Fixed Width – and it’s pretty much automated. No dragging in and out of documents, no looking for that snippet. Or extra menus, folders and files. Just click and done. Pretty cool!

  • Eric Lagergren says:

    I’m sure you’ve done articles on ID libraries before, as well, but along the lines of this post and its comments, I find that the libraries feature is invaluable in much of the work I do. Snippet v. Library isn’t really what I’m advocating. I’m just saying that the ID library should have some recognition for ease of access and timesaving capabilities, as well.

  • Eugene Tyson says:

    Blah – can’t stand libraries, so unintuitive, cumbersome, slow etc.

    Now, an Assets manager would be helpful – we got minibridge instead. But an Assets manager would be way too helpful.

  • Peter Kahrel says:

    Very nice trick, Keith.

  • Nice, Keith. Not technically a trick or hidden feature–but a very clever adaptation of an existing feature!

  • Marcel says:

    Veru nice trick.

    I allways wished InDesign styles to have “CSS features” to save us from clever but unintuitive roundtrips

  • Phyllis says:

    Hey Eric, I’m the one of the few folks who uses libraries. :-) I like to see all the library stuff in a tiny little panel instead of searching around for snippets.

    Great article, Keith!

  • Jo says:

    Fantastic trick!! I will surely find a use for it.

    Phyllis – library person here, too, especially for giant collaborative projects. I do a lot of setting up templates for other people with negligible InDesign skills to use, and I can’t imagine the mess if I were using snippets.

  • hhelmbold says:

    Thanks for this! I just can’t believe Adobe still hasn’t implemented width + height. Doing yearbooks I use certain sizes for different photos and it would be awesome to just apply a style to set the sizes.

  • dplblog says:

    The height is the tricky part. I want to use a style where the height of the box fits a little larger than the type size, but the width is variable based on how many characters I put in. A designer might use this to include testimonials about a product, or a quote from a student about a course, or a price that fluctuates between four digits and five. It’s much easier to simply click a button in the object style palette than to load and place a snippet each time — especially when using the object needing to be styled as an anchored object.

    Anyone heard if this is a feature “to come” from Adobe?

  • @hhelmbold and dplblog: Here’s a blog article about setting the height of a frame: https://creativepro.com/creating-a-fixed-height-frame.php

  • Jane says:

    I have trouble finding a basic tool in Id:
    When I copy/paste or place text onto my page, I get a text frame of 52.917 x 52.917 mm or 150 pts depending on my ruler incs. I want to set the width to 41 mm but I can’t work out how. I know that if I hold down shift while I thread the text, the width of subsequent boxes will automatically fit to the master page columns but I want the the original text box to be correct from the start.
    Does anyone have an answer?

    Best,
    Jane

  • Doug Gibson says:

    For any scriptophobes (like me) who are looking to set the dimensions of all objects of a certain Object Style, Jongware wrote a script that do just that.

    It’s over at the Adobe InDesign Scripting forums, and he provides instructions for editing and installation—

    https://forums.adobe.com/thread/628574

    I’m not sure what happened, but I did have to do a little troubleshooting to get it to work with the style name I used (probably a typing error on my part). Now that it’s working, though, I highly recommend this script for anyone who wishes InDesign provided this function out of the box.

  • Kara says:

    Hi, I’m trying to figure out how to set up and be able to globally change a custom circle with text throughout the document. I can’t seem to adjust object size in the object style box. Note, some of the circles are located within tables and others are on top of text boxes. Please advise. Thanks!

  • >