Vertically Align to center of text box

I have a project that has 500+ Peices and 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
I am using data sets and variables.xml to create them all quickly. Now the problem I am having is getting the text to wrap properly this was easilly solved by using a text box. But now I would like to center all text vertically inside the box. Can someone point me in the right direction.

You are welcome, darkorical.
Depending on the task/options, it may be worth looking at this thread,
http://forums.adobe.com/thread/756492?tstart=30
and at the
JET_AutoFitVertical.jsx
JET_SetCapsHeight.jsx
scripts mad available by James here:
http://www.illustrationetc.com/AI_Javascripts/TextScripts.htm

Similar Messages

  • Vertical align to center in a div

    Hi,
    I'm putting together a css layout in dreamweaver CS3, i have a basic nav bar with a solid black colour with text on top. I'm trying to vertical align the text to the center, currently it's center horizontally, but the text is right at the top of the div. The only way i've been able to change the position is to use "line height"
    Any there any easy way to do this in css?
    Any help is much appreciated, thanks.

    Hi again,
    I'm having a bit of trouble trying to get my main text area vertically center on one of my pages, i have a two column layout(text area on the right). The above methods don't seem to work, they just seem expand my whole bodyArea downwards.
    Currently my codes look like this:
    Layout:
    <style type="text/css">
    <!--
    body {
         background-color: #666666;
    #wrapper #bodyArea #left {
         background-image: url(images/picture.jpg);
         float: left;
         background-repeat: no-repeat
    -->
    </style></head>
    <body>
    <div id="wrapper">
      <div id="logo"></div>
      <div id="nav"><a href= nav text here </a></div>
      <div id="bodyArea">
        <div id="left"></div>
        <div id="shadow"></div>
        <div id="right">text with paragraphs here</div>
        <div id="footer">copyright info here</div>
      </div>
    </div>
    </body>
    </html>
    stylesheet:
    #wrapper {
         width: 781px;
         margin-right: auto;
         margin-left: auto;
            height: 699px;
    #wrapper #logo {
         height: 116px;
            background-image: url(../images/logo.jpg);
    #wrapper #nav {
         height: 38px;
         text-align: center;
         color: #FFFFFF;
         font-family: "Courier New", Courier, monospace;
         font-size: 19px;
         line-height: 38px;
         background-repeat: no-repeat;
         background-color: #000000;
         margin: 0px;
    #wrapper #bodyArea #left {
         width: 341px;
         float: left;
         height: 507px;
    #wrapper #bodyArea #right {
         width: 440px;
         float: right;
         height: 507px;
         text-align: center;
         color: #000000;
         vertical-align: middle;
         font-family: Arial, Helvetica, sans-serif;
         font-size: 16px;
    #wrapper #bodyArea #right #shadow {
         height: 14px;
         background-image: url(../images/shadow.gif);
         background-repeat: repeat-x;
    #wrapper #bodyArea #footer {
         height: 38px;
         clear: both;
         text-align: center;
         color: #FFFFFF;
         background-color: #000000;
         font-family: Arial, Helvetica, sans-serif;
         font-size: 15px;
         line-height: 38px;
         margin: 0px;
    p {
         margin-top: 0px;
         margin-right: 10px;
         margin-bottom: 15px;
         margin-left: 10px;
    I'm fairly new to CSS layouts, if anyone could help me it would be much appreciated, thanks.

  • Text box alignment problem

    Every time I create a new text box in an exsiting file, the text in a text box moves. the text alighment button is pressed EG: align to top of text box, Middle or bottom. but everytime I move the text box, the text will then move with in it. I turned off all text wraps and ticked suppress any text wrap in hidden layers (even when this is not ticked) nothing changes, The text still moves around inside the box. I am quite sure that this is not suppose to happen, especially if I ticked for  it to be align in the centre of the text box.
    Can someone help me please.

    Thank you so much. It's been bugging me for ages.

  • Standalone multi-line JLabel vertical alignment

    I have a JLabel subclass that I am using an a Servlet environment, with iText to create a PDF. When I set the vertical alignment to CENTER, the vertical spacing is not correct and the label runs off the bottom of its allocated area. The JLabel is not attached to any Container, it is simply a standalone JLabel with no parent.
    I've done a little digging/debugging and it appears that the View (a javax.swing.plaf.basic.BasicHTML$Renderer) is returning the height of a single line of text from getPreferredSpan(View.Y_AXIS), even though when painted, the label spans several lines. This causes SwingUtilities.layoutCompoundLabel to calculate the wrong starting Y value for the text area.
    When I use this JLabel subclass in a GUI/Swing program that I have, added to a JPanel, it works correctly.
    Looking for any clues or suggestions.

    Partial answer:
    I noticed that in the GUI environment, that the paint() method was being called twice. The first time through, the height of the text was calculated as I described above in the standalone environment - for only a single line of text. The second time through, it calculated the height correctly.
    I changed my subclass to call super.paint(g) (with a dummy Graphics) if there is no parent. This "fixes" the problem in the standalone environment.
    I theorise that it takes 2 passes through the size calculations in the View - once to set the width and again to set the height. Any further insights are welcome.

  • Inserting a Text Box? - Applescript

    Thanks for helping me out earlier. Now I want to insert a text box at the bottom of the page 4.5 inches wide and .5 inches tall, how do I script that in?
    This is all needed as part of a workflow I am doing with automator, and once I can solve that, then I am DONE!
    Here is my apple script:
    tell application "Microsoft Word"
      activate
              set orientation of page setup of section 1 of active document to orient landscape
              set mar to page setup of active document
              set left margin of mar to (inches to points inches 1)
              set right margin of mar to (inches to points inches 1)
              set top margin of mar to (inches to points inches 0.7)
              set bottom margin of mar to (inches to points inches 1.5)
              set alignment of paragraphs of active document to align paragraph center
    end tell
    Thanks.

    Hi,
    Here is an example :
    tell application "Microsoft Word"
          activate
          tell active document
                set orientation of page setup of section 1 to orient landscape
                tell its page setup
                      set pWidth to page width
                      set lMargin to inches to points inches 1
                      set left margin to lMargin
                      set right margin to lMargin
                      set top margin to (inches to points inches 0.7)
                      set bottom margin to (inches to points inches 1.5)
                end tell
                set alignment of paragraphs to align paragraph center
                set nP to (count paragraph)
                -- the doc must have at least two blank paragraphs at end of it before creating the textbox
                if (content of text object of paragraph (nP - 1)) is not return then insert paragraph at after last character
                if (content of text object of paragraph nP) is not return then insert paragraph at after last character
                select text object of last paragraph -- select the last blank paragraph
          end tell
          create textbox selection
          tell last text box of active document
                set height to inches to points inches 0.5
                set width to inches to points inches 4.5
                set content of text range of its text frame to "something" -- set the content of this text box
                set left position to ((pWidth / 2) - (width / 2)) - lMargin -- center the text box, no center alignment in AppleScript
          end tell
    end tell

  • Vertical alignment in table cells not working in generated output

    Using RH9 WebHelp. I have created a simple table style. Because I could not find out how to make cell vertical alignment (top, center, bottom)  part of the style definition, I have been applying it manually to individual whole tables using the cell alignment properties.
    This worked fine for a while, but at some point I noticed that even though the tables look right in Design view, with top-aligned cells contents, it gets hosed in generating output and all tables now come with vertically centred cell contents even through the in-line formatting for top alignment is still there in the code.
    Any ideas?

    Hi Mike,
    I'm confused to where you applied the vertical alignment. Normally, I would set this for the table cells and not the table.
    CSS has indeed an order in rendering: There is a point system for determining the CSS to apply. See http://net.tutsplus.com/tutorials/html-css-techniques/quick-tip-understanding-css-specific ity/ for a short introduction.
    And as an extra to the point system, the place where the styling is present, also determines the styling. Browsers use the following hierarchy (in descending order)
    User style sheet defined in the browser.
    Inline styling.
    Style block in page.
    External style sheet
    You can overwrite styling from a lower order using the !important declaration. You can use this to make sure that inline styling will not be able to overwrite styles from your style sheet. (Unless the inline styles use !important themselves.) Example:
    table.mytable td {
         vertical-align: middle !important;
    This will make all the content of table cells in the table with the class mytable to be vertically centered.
    Greet,
    Willam

  • How do I center align the text in my text boxes if they are currently right aligned?

    I created a client questionnaire in Word and then turn it into a PDF and created the text boxes necessary. The problem I am having in Adobe XI Pro is that I want all of the text in my text boxes to be centrally aligned rather than left aligned. However, when creating and editing the text boxes, I see no option to help me do so. When clients fill out the form it looks messy because the information that the fill in tables in not centrally aligned, so it makes my tables look poorly organised. Help would be much appreciated, thank you.

    In Form Edit mode, right-click the field(s) and select Properties - Options, and under Alignment select "Center".

  • Vertically align middle input text in a text box

    I'm creating Flash-based software that has text boxes where users write in the answers to questions. I want the text that the user types to be vertically aligned to the middle of the text box, so that even if the response is two or three lines, it is still centered in the box.
    It doesn't appear that I can accomplish this through the properties window in Flash. Am I missing something? Or is it possible to set the properties of the text box with actionscript, and would that allow me to vertically align the text?
    Thanks!

    You're not the first to ask this, but if you got an answer of how to do it, you'd likely be the first.  I don't think it is possible since there doesn't appear to be any sort of top margin property available for TextFields.  You might be able to fake something like that though if you think about it... like using the changed event of a textfield to reposition it vertically in a pseudo border/bkgnd.
    If you do come up with a solution, you should share it here... as I said, you're not the first to ask.

  • "Vertical Align Center" Text and a Shape

    Hi designers,
    I wonder if anyone could give me a hand with aligning text and shapes? I would like to align a number to the center of a circle. "Horizontal Align Center" works well. "Vertical Align Center", however, does not yield the desired result. The number turns out to be higher in the cycle (see figure below). The distance from the top of the circle to the top of the number zero, X, is shorter than the distance between the bottom of the circle and the bottom of the number zero. Is it possible to equal these two distances?
    Figure 1: The Outcome of Vertical Align Center
    Thanks,
    Haobo

    Hi Mylenium,
    Thank you very much for you very prompt reply, which solves the problem very effectively.
    If you do not mind, I have got two further questions.
    Firstly, is there an option similar to "Align to Path: Centre" under "Type on a Path Options" that changes how text is aligned?
    Secondly, does InDesign offer the aforementioned function?
    I sometimes label a large quantity of locations with alphanumeric characters, which are subject to frequent changes, and therefore would like to preserve the text if possible. I have heard that manipulating text is InDesign's area of expertise. If this function is not available in Illustrator but offered by InDesign, I can jot down another reason for acquiring the latter and split the workflow in the future.
    Thanks,
    Haobo

  • Vertically Center Text in a Text Box

    Just switched form Acrobt 6 to Acrobat Pro 9 and can't figure out how to verically center text in a text box.  When I select the text it gives me the properties bar shown below:
    Seems like a really dumb question because I know I could in Acrobat 6 and I don't know why they would take away that feature, but I can't find it anwywhere.

    The only time the More button is enabled is when I have the Text Box selected, and then the options pertain to the line weight, etc. of the box and not the text.  When I select the text the More button is not enabled and the only options properties are the ones shown above.
    I made the Text Box by going to "Tools", "Comment & Markup", "Text Box Tool".  I have not seen anything that says Multiline and when I searched help it only talked about multiline fields in forms.
    Thanks for the quick responses.

  • How do I vertically align my text to center within a div?

    any solutions?

    nevermind I found a way to do it. It's probably not the most efficient way but since I only have a single line of text within the div I managed to vertically center the text using line height. I am new to web design and have been studying and watching tutorials for the last month on dreamweaver. I am getting better but I must say dreamweaver is quite glitchy when it come to accurately displaying the actual design of the webpage in split view. Only when I view my work in line view can I actually see what is really going on.

  • Centering text vertically in text box

    When you open a text box how do you center the text in the middle from top to bottom(vertically), not left to right. The text starts immediately in the top left corner. I need it in the center of a predefined text box size, so that if you drew a line across the center of the box from left to right, the top half of the letters  would be above the line and the bottom half would be below the center line. In other words there should be the same distance above the words to the top edge of the text box, as to the bottom of the text box, from the center.

    Thanks for the reply. Let me start by saying I am definitely a newbie with Photoshop. So if you could explain what I should do in PS that would help. I'm using CS6 Extended. I really don't know the difference between Paragraph text and Point text, and not sure what you mean when you ask is this for an Action.
    I selected the "T" Horizontal type tool, and drew a box. Then I started typing. It looks like my selections are left align, center align, and right align. But it does not Center it in the middle of the box. The text is still at the top of the box. I have to have the box a certain size because of the project I'm working on. I'm assuming the text I'm selecting is what you are calling Paragraph Text. How do you use Point Text.
    It's basically the spine on a book cover. You place the Title and the Authors name there, but you have to make sure it fits within the spine width, and is centered in that area. Like if you were looking at the side of a book, the title/author should be centered along that spine from top to bottom.
    Thanks!

  • Photo grid alignment - cannot align or center vertically

    I'm adding photos into a photo grid and cannot center them vertically within the blue box of the grid. I'm using 1 column so that each photo appears as large as possible. I've cropped and edited the photos in iPhoto, so some are horizontally shaped while most are portrait shaped. They automatically want to position themselves in the blue photo box, not allowing me to center them vertically so that their spacing on the photo page appears more even. Adjusting spacing on the photo grid pop-up does not help this problem.
    Is there a way to center vertically a photo within a single column photo grid?

    Thank you, but the problem has not been solved. When I click on the narrow line blue box and go to Arrange-Align Objects-Center, only the first photo in the group moves position. All other photos, relative to each other, have uneven spacing, especially vertically. Either there is lots of space between them, or they are jammed together - all depends on their shape. When I try to Command Click each photo to then Arrange-Distribute Objects-Vertically, these menu options are not available (gray). It works on text blocks, and individually placed photos in other areas, but not on photos brought into a photo grid. Unless each photo is exactly the same shape and size, spacing and aligning in the grid is very uneven. Any more ideas?

  • Make text box text start at top of box, not centered vertically

    It seems all my text boxes i have start the text in the center of the box vertically, then spaces it out as you type more.  is there a way to make it start at the top of the box and work down, just as if you were typing in Word or Notepad.  if someone only types a few lines, it looks kinda odd having the text in the middle of the box with all that white space above and below it.

    Hi,
    You can set the vertical alignment of the caption and value (and both) for an object in the Paragraph tab - works just like Word.
    Good luck,
    Niall

  • 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

Maybe you are looking for

  • How to find the list of WDAs for IS Retail?

    Hi all I did some basic search on SDN to find all WDA components SAP will predeliver on the installation of IS-Retail. I could not find useful links. Does anyone know how to find it? Also would like to know the SAP roadmap on the WDA apps that will b

  • Clone of drive doesn't have the right name on option-restart

    I have created a clone (with Carbon Copy Cloner) of my principal drive in anticipation of both OSX 10.9 and because of Adobe's recent changes for their software (I need to keep the current versions of Adobe CSS) in case I decide to discontinue the mo

  • How to update a CLOB column

    here is my problem. I have a table called t_clob as follows: SQL> desc t_clob Name Null? Type C CLOB I need to update an existing row with new data (overwrite). The new data is a big java script string with line break, spaces, alignment etc. as follo

  • Drop datafile

    Hi mates, I dropped a newly created datafile in a tablespace that has two datafiles. The syntax used is : startup mount; alter database datafile 'c\oradata\ooo.df01' offline drop; DATABASE ALTERED. Now the datafile still shows as available in the DBA

  • URGENT!! Smartform : graphical edition impossible!

    Hi, I created a Smartform for Delivery Note with its print program in a newly upgraded ECC6.0 system. I customized in NACE in proper column. When I try to print it via VL02N, the message is: "Graphical edition impossible" Does anyone know how to solv