Aligning text horizontally inside a rectangle shape?

I have text on top of a rectangle made with a shape layer. I now want to align the text in the center of the rectangle shape. I select both layers, though the option to align the text sometimes shows and other times does not. When it does show the horizontal option is greyed out. How is this done?
Thanks.

With the Move Tool selected and no Selection active it should be no problem, could you please post a screenshot with the pertinent Panels visible?

Similar Messages

  • Aligning text in a button?

    I have a button (a simple rectangle) and I create a new layer and place text on the first keyframe while in Button Symbol Edit Mode. I now want to align the text in the center of the button. I drag over both the text and the button to select them both and than I open the Align Panel and I choose to align in the center. However, it is not aligning the text in the center and it is also moving the button to the left.
    What is the correct way to do this?
    Thanks.

    Sorry for not getting this. I'm coming from Illustrator, and there I can select the background shape and text, select the shape as a key object and align the text both vertically and horizontally inside the shape.
    I can not align the text vertically in the shape in FL. If I have both the shape and text selected, do I work with the align panel or the property inspector to do this?
    Thank you for your patience.

  • How to cut of rectangle shape to create bracket in Photoshop?

    I want a layer like this:
    I've drawn the rectangle then I made a selection with the marquee selection tool to delete a part of the rectangle but it deleted whole shape. Can anyone please help me out with this.
    Thanks in advance.

    hungp15938294 wrote:
    Thanks to Trevor.Dennis and @station_two for helping me . I have more a stupid question because I'm not good at Photoshop. Please take a look at image below
    Make your rectangle shape.  If you want it to be perfectly square, hold down the Shift key while you drag.
    Make your two text layers using the centered text alignment option.
    Select the entire canvas — Ctrl a (Cmd a )
    Select the Move tool and then select the rectangle shape and both text layers.  You should see matching ants at the edges of your image.
    Click on the Align horizontal centers icon in the Options bar. The rectangle and text layers will now be centered vertically in the image.
    If you want the box centered width wise, select just the box layer, and make sure you still have the matching ants at the image edges.
    Click on Align vertical centers second icon from the left in the strip above.
    You will need to align the text layers to intersect the horizontal lines manually, but if you hold down the shift key while dragging, they will not move sideways.
    Nearly done.
    You still need those marching ants at the screed edges (Ctrl a).  Go Select > Transform selection You will now see handles on the selection.
    Hold down the Alt (Opt) key, and drag either the central handles on the vertical sides towards the middle of the box. Both sides will move symmetrically.
    When the select is a couple of mm clear of the wider text, click on the tick icon on the Options bar to OK it.
    Make sure just the box layer is selected, and add a Layer mask. This will actually hide the bits you don't want hidden, so last step.
    Invert the layer mask Ctrl i (Cmd i)

  • JS to add url hyperlink to a rectangle shape?

    Hi there,
    Any JS script to add a url hyperlink to a shape object ?
    Thanks a million....

    Hi,
    here's a script that might help you. I made it and tested it only for InDesign CS5.5.
    How to use it: select any object in InDesign then run the script. At first, the script will try to see in the clipboard has valid URL (well, a text startiong with http…) and if so, the clipboard will be take as a good URL for the new created button. If no valid URL in the clipboard, the script will ask for the URL to be entered manually. If the ibject is a text frame, the script will try to take the text from inside the frame as a URL – if not valid, then the dialog pops up.
    // -------------------------------------------- BEGIN SCRIPT ----------------------------------------------
    if (app.selection.length==1) {
    //get the selected object (only one object)
    var xOBJECT = app.selection[0];
    var xPAGE = xOBJECT.parentPage;
    var xBOUNDS = xOBJECT.geometricBounds;
    //create the button
    var xBUTT = xPAGE.buttons.add({geometricBounds:xBOUNDS});
    //add selected object to the normal state
    xBUTT.states.item(0).addItemsToState(xOBJECT);
    //create the gotoURL behavior
    var xGOTOURL = xBUTT.gotoURLBehaviors.add({behaviorEvent:BehaviorEvents.mouseUp});
    //get the clipboard
    var xTEMP = app.documents[0].textFrames.add(); xTEMP.insertionPoints[-1].select(); app.paste(); var xCLIP = xTEMP.parentStory.contents; xTEMP.remove();
    //check the clipboard or text frame's text; if it does not starts with "http" then it's not good and a dialog asking a good URL will popup
    if (xOBJECT.constructor.name!="Rectangle")
        var xURL = xOBJECT.parentStory.contents;
    } else {
        var xURL = xCLIP;
    if (xURL.substring(0, 6)!="http://") {
    // do the dialog here
    var xDIAG = app.dialogs.add();
    with (xDIAG.dialogColumns.add().dialogRows.add()){staticTexts.add({staticLabel:"Enter URL:"}); var xURLTEXT = textEditboxes.add({editContents:xCLIP, minWidth:160});}
    var xRESULT = xDIAG.show({name:"Button creation"});
    if (xRESULT == true){xURL = xURLTEXT.editContents; xDIAG.destroy();} else { xURL="http://"; xDIAG.destroy();}   
    // set the URL to the behavior
    xGOTOURL.url=xURL;
    // -------------------------------------------- END SCRIPT ----------------------------------------------
    Have fun!

  • How to align text at the top and bottom of a cell?

    I'm making a periodic table and need help with aligning text at the top and bottom of a cell. I'll have a picture in the middle of the cell with text above and below the pic. Thank you in advance for any kind of suggestions you can give me.

    It sounds as though you want to have 3 separate items inside of a single cell; text at the top of the cell, text at the bottom of the cell, and then a picture in the middle of the cell.  I am no expert, but to my knowledge that is not possible (someone please correct me if I am wrong.)  I also cannot figure out how to put a picture inside of a cell itself.
    I do have a way to accomplish the end result so long as what you need is the final look and not a useable table in numbers.
    Create 2-3 cells for each element.  (The middle cell, unless you can put pictures in a cell and I don't know, would just be there for peace of mind, but would hold the picture if you can, I would just do two if the pictures are to be in front of the cell anyway.)  The top cell align text to top on the Text tab of the inspector.  The bottom cell, align text to bottom on the same tab.  Then place the picture in the middle.  Now, you have what you want except there is one or two lines dividing the cells.  To get rid of this, either click the middle cell if you have one, or the top or bottom cell.  Click on the Cell tab of the inspector.  Select the bottom border and/or top border button and select "No Border" under border styles.  To make this fast, select a full row at a time, or use command click to select all of the same type of rows (middle, top, or bottom) and change all cells at once.
    I hope this helps.  Best of luck!
    ~Bret

  • Cannot Align text in cell

    Greetings,
    I am having issues when trying to format my spreadsheet.  First of all, I have "Wrap Text in Cell" option turned on.  So when I have text that can fit into the cell, its fine.  But when I have long text in the cell, it wraps the text in the cell so it can fit inside, which I'm fine with.... but for some reason, it is not aligning it in the cell properly, so now part of the text it cut off.  I try to center align the text, but no use. I hit the button for "Align text in the middle of the table cell", and still does not align the text so that its centered, not cut off. I have included an image of what im talking about. Help please?

    Hello
    Here is what I get with Times New Roman under 10.6.8
    May you try to
    quit Pages
    trash the preferences file :
    <startupVolume>:Users:<yourAccount>:Library:Preferences:com.apple.iWork.Pages.pl ist
    restart Pages
    It it changes nothing, try to :
    quit Pages
    trash the preferences file :
    <startupVolume>:Users:<yourAccount>:Library:Caches:com.apple.iWork.fonts
    restart Pages
    Yvan KOENIG (VALLAURIS, France) mercredi 24 août 2011 21:24:52
    iMac 21”5, i7, 2.8 GHz, 4 Gbytes, 1 Tbytes, mac OS X 10.6.8 and 10.7.0
    My iDisk is : <http://public.me.com/koenigyvan>
    Please : Search for questions similar to your own before submitting them to the community
    To be the AW6 successor, iWork MUST integrate a TRUE DB, not a list organizer !

  • Center text horizontally and vertically on composition?

    Hello,
    I'm working on a short projects (15 minutes length). Every 30 seconds a title fade in/out against a blank (grey) composition. How do I go about easily centering the text (single word) on the composition both horizontally and vertically? I know I can horizontally center via the paragraphs pallet, but how do I center on the vertical at the same time?
    Right now I'm modifying the Anchor Point of the text so it's in the center (visually) of the text, and then set the Position to the center of the composition, but every time I increase the type size, I have to go through this all over again...and with different titles coming up every 30 seconds or so, a simple text size change turns into a lot of work.
    I can only image there's a better way to do this and would appreciate any advice for an AE newb!
    Thanks,
    Kristin.

    It is possible to do this via scripting, but it won't be "live", i.e. you would have to run a script to grab the dimensions of the text layer each time you want to update its vertical alignment.
    It is also possible to roughly align text vertically using expressions given three limitations:
    1) You'll have to be willing to consider the height of the text layer to only extend from the cap height of the first line to the baseline of the last line, meaning descenders and ascenders wouldn't be counted as part of the height of the text layer.
    2) You'll have to manually locate the center of the first line of text.
    3) You'll have to be happy with a consistent point size and line spacing throughout.
    Given those limitations, vertical alignment can be done as follows:
    Add a Position animator to your text layer. Delete the default range selector you won't need it. Next add the Line Spacing property to the newly-created animator (using its "Add" menu). In the Character panel, set your text layer's line spacing to 0 (it will really be set to .01, but the difference shouldn't be noticeable once we're done). In the Line Spacing animator, set the desired line spacing (unfortunately, "Auto" isn't an option).
    Now set your Text layer's anchor point such that it falls in the center of the text's cap height (the height of a capital letter with no ascender or descenders).
    Next, add the following expression to the Position property of the text animator (NOT the Position property of the text layer's Transform group):
    >STA = text.sourceText.split("\r");
    >value - [0, (STA.length-1)*propertyGroup(countUp = 2).property.lineSpacing[1]]/2
    The second line should be all one line, but the forum insists on wrapping it. Be aware that if you later decide to change the point size of the font, you'll need to temporarily disable the text animator and center up the anchor point again.
    You can also use this method to force the text layer to shift up to accommodate new lines by deleting the "/2" at the end of the second line of the expression.

  • Text object inside MC tracked as button

    Hi people!
    I'm trying to use a dynamic text box inside a movie clip
    tracked as button, but the text box object is not recognized. The
    system refers to it as instanceX where X is a random number. Below
    an example of the debug list object:
    Level #0: Frame=1
    Button: Target="_level0.circle_mc"
    Shape:
    Edit Text: Target="_level0.circle_mc.instance7" Variable=
    Visible=true Text = "
    Anyone knows how to correct this problem or how to access the
    object.

    two accordion widgets next to each other maybe?
    widgets library > panels > accordion

  • Aligning text vertically

    I know how to center text horizontally within the text box in CS5 Extended (just click the same "center" icon you would click if you were using Microsoft Word or any other program), but how can I center it vertically (have it placed equidistant from the top and bottom of the text box)?  I know there must be a way.
    Thanks!

    I think the question has to do with text arranged vertically, rather than text that is centered on a vertical line dividing the cell.
    The example in column A is available in cells in Pages Tables. But of a kludge, though, as its achieved by inserting a return (option-return if you're typing it in the cell) after each character in the string.
    The example in column B is made by entering the text into a text box, then rotating the box using the Metrics Inspector, aand placing it in front of the cell where it is to appear.
    The example in column C has been horizontally centered in the cell using the alignment button on the format bar. There is also an alignment button in that bar to center the text vertically in the cell, but I hadn't used it before capturing the screen shot. This text also has an option return inserted after each of the first two words.
    Regards,
    Barry

  • Threading text boxes inside of text boxes

    I'm currently working on a book where the client has requested that certain sections of text are inside a gray box. I figured I could but that text inside a text box and place that text box inside the main body of text, so the box is uniform and not a floating shape behind the text box that I need to worry about during editing. However, I run into issues when the gray box text spans more than one page. Is there a way to thread text boxes that are placed inside another text box? The little box is there on the corner of the gray text box but I cannot click it to thread it to another 'placed' gray text box. I'm also open to other solutions.
    I'm currently working with Adobe InDesign CS6.

    Unfortunately, no.

  • Aligning text in JTextArea

    Hi,
    Does anyone know how to set the point at which text in displayed in a JTextArea using the setText() method. I am trying to align text in the centre of a JTextArea. Is there a way one can find the pixel at the centre of the textarea and then somehow set the cursor point to the centre and to align the string correspondingly?

    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    public class PlacingText {
      static int hInset = 20;
      public static void main(String[] args) {
        String text = "public class JTextPane \n" +
          "extends JEditorPane \n\n " +
          "A text component that can be marked up with attributes that are represented " +
          "graphically. You can find how-to information and examples of using text panes " +
          "in Using Text Components, a section in The Java Tutorial. \n\n" +
          "This component models paragraphs that are composed of runs of character level " +
          "attributes. Each paragraph may have a logical style attached to it which " +
          "contains the default attributes to use if not overridden by attributes set on " +
          "the paragraph or character run. Components and images may be embedded in the " +
          "flow of text.";
        final JTextArea ta = new JTextArea(10,40);
        ta.setMargin(new Insets(10,hInset,10,hInset));
        ta.setLineWrap(true);
        ta.setWrapStyleWord(true);
        ta.setText(text);
        JPanel panel = new JPanel();
        panel.add(new JScrollPane(ta));
        final JButton moreButton = new JButton("more");
        final JButton lessButton = new JButton("less");
        ActionListener l = new ActionListener() {
          public void actionPerformed(ActionEvent e) {
            JButton button = (JButton)e.getSource();
            if(button == moreButton)
              hInset += 10;
            if(button == lessButton)
              hInset -= 10;
            ta.setMargin(new Insets(10,hInset,10,hInset));
            ta.repaint();
        moreButton.addActionListener(l);
        lessButton.addActionListener(l);
        JPanel southPanel = new JPanel();
        southPanel.add(new JLabel("horizontal margin:"));
        southPanel.add(moreButton);
        southPanel.add(lessButton);
        JFrame f = new JFrame();
        f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        f.getContentPane().add(panel);
        f.getContentPane().add(southPanel, "South");
        f.pack();
        f.setLocation(300,300);
        f.setVisible(true);
    }

  • Aligning text in JLabel

    Hi all,
    I'm simply trying to align text in a JLabel.
    I've been trying to use HTML formatting inside the JLabel, e.g:
    label = new JLabel (" <HTML><CENTER><P>Line one</P> <P>Line two</P></CENTER> </HTML>" );but when I try to use the <CENTER> tag it seems to be ignored?
    Why?
    How do I get around this?
    Many thanks.

    You can use the following code segment:
    JLabel ab = new JLabel("GG" ,  SwingConstants.CENTER);Hope it helps.
    --DM                                                                                                                                                                                                                                                                       

  • Vertically align text

    Hi
    Is it possible to vertically align text within a frame?
    Thanks

    Wade_Zimmerman wrote:
    I really do not think there is a reason to do this but if the OP has a good reason or wants to tell us why they need this we might be abe tooffer them a better way.
    I searched for a solution to this myself and missed this thread before i posted my own thread. but I find it odd how when this is asked for people are asked to give a good reason to use the bounding box, or like here told that there is no reason to need this. Well here is my current situation.
    I have a project that has 500+ peices. I am using data sets and variables.xml  to create them all quickly.
    Each one consists of a 1 of  three logos and 1 of 500+ lines of text and all the lines of text are  different lengths
    Now the problem I am having is getting the  text to wrap properly instead of running off the art board. This was easilly solved by using a text box. Now I am faced with a new issue, One line texts are all sitting really high on the artwork.
    So I would like to center all text vertically inside the box

  • Rectangle shape and add to controls to it:

    Hi,
    I've a requirement where I need to add rectangle shapes to the application and I should add text, image and button. I checked with Rectangle shape, but it will not allow us to add controls within that. Please let me know how can I do the same.
    Thanks,
    Santosh

    Just add the Rectangle and the TextBlocks and Image to the same Grid:
    <Grid Width="100">
    <Rectangle Width="100" Height="100" Fill="Green"/>
    <Image Source="pic.png" Width="10" Height="10" Margin="20"/>
    <TextBlock Margin="10 5 10 5">text...</TextBlock>
    </Grid>
    The TextBlock will end up on top of the Image that will end up on top of the Rectangle using the above sample markup. Use the Margin property to control the position of the elements.
    Please remember to close your threads by marking helpful as answer and then start a new thread if you have a new question.

  • How to access a placed PDF inside a rectangle and move it around

    Hi, I have the following code which places a PDF inside a rectangle var f = new File("C:/pdf.pdf");    var doc = app.activeDocument;  var thepdf =doc.pages[0].rectangles[0].place(f, false);  doc.pages[0].rectangles[0].fit(FitOptions.FILL_PROPORTIONALLY);  Now I want to move "thepdf" (which is of object type PDF) but I can only find a way to move the rectangle around it. I need to move the inner rectangle (the PDF), like I would do with the Direct selection tool. is this possible?

    Yes. That's possible.
    The PDF placed inside the rectangle is the graphics[0] object of the rectangle.
    Or, if you look it up in the links collection, the parent of that link. The parent of that parent is the container object, the rectangle.
    myRectangle.graphics[0].move(/*insert your arguments here*/)
    Would move the PDF inside. Where the move() method could have different arguments:
    Adobe InDesign CS6 (8.0) Object Model JS: Graphic
    Uwe

Maybe you are looking for

  • Bridge CS4: Workspace settings won't stick?

    I saved a Workspace based on the standard Light Table, but with larger thumbnails. The saved Workspace shows up on the list of Workspaces near the top of the screen, and I can click on it to select it. However, when I switch to it from another Worksp

  • Text/character overlay on a movie segment in imovie08?

    I have several movie segments that I am putting together to form one movie. On the first segment, I want to put an arrow/carot to point out one person. The segment is about 15 seconds long, and I want the arrow to appear for about 2 seconds near the

  • Why Window doesn't appear back ???

    Hi Experts //get the repository content at runtime of the Web-Dynpro- // Window “AddressbookWindow” IWDWindowInfo windowInfo = (IWDWindowInfo)wdComponentAPI .getComponentInfo() .findInWindows("AddressbookWindow"); //create the “AddressbookWindow” IWD

  • How to get ip address of user in jsp?

    I want to get statistics of user in pages that is created by JSP.How can I code this in JSP?

  • To get segtyp if an IDoc from its segnam

    hi all, i have a query, i need to get segtyp (of an Idoc from) frm its segnam. i have used all IDOC related table like EDID4, EDIC, EDIS etc but have not been able to find any solution till now to solve my query. please help. Edited by: Kriti Nigam o