-Lisa- Posted May 7, 2009 Share Posted May 7, 2009 Hi all, Is there a way to set the horizontal alignment of a graphic from within a JavaScript rule? I have a variable graphic frame with a choice of five images. Two images need to be placed in the frame center aligned and the other three need to be placed in the same frame right aligned. Is it possible to align from within the rule or do I need to create separate graphic frames that sit on top of one another to achieve this? It would be great if I can get away with one frame and one rule for this. Thanks!! Link to comment Share on other sites More sharing options...
esmith Posted May 7, 2009 Share Posted May 7, 2009 On page 44 of the FP Tags Reference Guide, it suggests that there is a tag for alignment <graphic alignh="right" alignv="top"> You should be able to use these to return tagged graphics in the necessary alignment. Of course, for only 5 images, I might be inclined to edit them beforehand in Photoshop and save them all as the same pre-determined size with each item placed in the correct position on the canvas, thus avoiding the tagging altogether. Link to comment Share on other sites More sharing options...
Dan Korn Posted May 7, 2009 Share Posted May 7, 2009 Yes, setting the attributes of the <graphic> tag will allow you to specify the alignment, as well as scaling and clipping. You can also create named Graphic Resources and check the "Override Template" box in the Resource Editor dialog. Link to comment Share on other sites More sharing options...
-Lisa- Posted May 8, 2009 Author Share Posted May 8, 2009 Thanks to you both! I looked through the entire Tags reference guide so I don't know how I missed that! Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.