Copy link to clipboard
Copied
Hi all. Quick question with object styles. I am creating a price box to use in catalogues. Currently we use a box with a white outline grouped with four individual text boxes (left in pic). This means depending on the length of the item name and whether there is a saving, I am constantly altering the sizes of the the boxes. So I created a version with object styles instead (right in pic). I am happy with what I have except I can't get the bottom inset in this version, ie the item code is flush with the bottom. In fact when I altered any of the top or side insets in the object styles text frame general options as a test none of them changed. Why is that? Any help appreciated! Thanks.
Copy link to clipboard
Copied
We'd have to see the file to see what is going on.
Copy link to clipboard
Copied
Copy link to clipboard
Copied
Copy link to clipboard
Copied
Copy link to clipboard
Copied
Thanks Eugene - I am comparing those and can't see the setting that is controlling that inset at the bottom, or preventing me altering mine...
Copy link to clipboard
Copied
Adding the 1.5mm inset via the text frame options means I can't control the width so much as I don't need that inset on the sides, but when I use the independent inset values in the Object Style itself is where the issues arise. Also I can't reduce the width beyond a certain point, it needs to be 17.82mm but I think it looks like the inset prevents this happening?
Copy link to clipboard
Copied
We make it 17.82mm for the width
Paragraph Shading - clip to frame
You can make it 3048mm (that's the max) but it will always clip to the frame
So you do need to keep the text inset
If you want your text closer
edit the product paragraph style
And set the baseline shift
All mine move cos they are all based on each other.
I just need to adjust the paragraph shading again
Aslo paragraph shading for the item no.
Then a little more tidying up around the edges
You can get there.
Copy link to clipboard
Copied
Thanks for the detailed 'how to' Eugene, much appreciated. Hadn't spotted the clip to frame option which is useful, as I've spent time in the past agonisingly altering shading to make it just right when I could have simply clipped it. The only thing that bugs me with this outcome is counteracting the bottom inset with a baseline shift, as I edit these codes all day manually. Ideally it would all be a data merge but we're not quite there yet.
Copy link to clipboard
Copied
The baseline shift should just lift it enough off the bottom of the frame.
I don't see it being problematic.
Copy link to clipboard
Copied
Hi @Spenno Did you have a look to my sample file? I used paragraph rules instead of paragraph shadings, and it seems that it works quite well. I repost it here with an unformatted text frame.
Copy link to clipboard
Copied
Ah yes, thank you for this. Also very useful. Paragraph rules are often overlooked as a solution in scenarios like this.
Copy link to clipboard
Copied
Yeh, I was trying with that too. My issue was it wasn't dynamic in text size changes. But it's an interesting approach and works really well.
If that works better for the OP then that is brilliant!