Changing text alignment to center.

Fo some reason, the forum search returns 0 results to me no matter what I enter.  I'm sure this has been asked before, but how to I change the alignment of point text to center?

Even though it's point text it's treated the same as area text. The following works
var docRef = app.activeDocument;
var textRef = docRef.textFrames[0];
//textRef.textRange.characterAttributes.size = 28;
var paraAttr_0 = textRef.paragraphs[0].paragraphAttributes;
paraAttr_0.justification = Justification.CENTER;

Similar Messages

  • Javascript change text path alignment

    In CS4 there is a menu item, text on path option - Align to Path - with the selections being (descender, ascender, baseline, center). I can't find a corresponding parameter in the javascript reference guide. Once I have a textPath setup in javascript is there a way to change the - Align to Path - of the text?
    Thanks,
    Mark

    Another of the many GUI options unavailable to scripting in AI.

  • How to change the text alignment of an adf table column

    Hi everyone
    I have a read only adf table that uses banding. What I want to do is change the text align property of one of it's columns but the task seems not at all trivial.
    I tried entering a value for the text-align property in the inline style of the specific af:column tag and failed. I then tried to do the same for the af:outputText element inside the column but still nothing worked. I even created a css style and changed the StyleClass attribute on each or both elements without any luck.
    Can anybody shed some light here ...
    Thanassis

    Specify the text-align in a css.
    Re: styling column headers in adf table

  • Change text field in profit center document

    Hi,
    We have a requirement like whenever we changed the text field for an accounting document, it should change the text field of relevant profit center document also.
    Is there a way to get this change automatically in profit center document.
    There was no change option for profit center documents, so we are not able to change the text manually in profit center document.
    Let us know if there is any possibility to change the text field in profit center document.
    also suggest me, if there is any user exit available for this purpose.
    Thanks in advance.
    Prasad

    Hi,
    Any suggestions regarding the below mentioned issue?
    Thanks &Regards,
    Prasad

  • Changing the alignment of text on the Creative Zen Visio

    Ok after having the Vision:M for a very long time it finally has a crack in the screen. The crack has turned into one big black blob and is on the left side which is covering up the text. Is there is a way to change the alignment of everything on the player so everything is aligned to the right side? Which would let me see artist names etc...

    Hi, i have a similar situation without the icon. I have a button whose text is to be left aligned. Here is the snippet of code i have. But, it is not working.
    linksButton = new JButton(link);         
             linksButton.setHorizontalTextPosition(SwingConstants.LEFT);
             linksButton.setBounds(xComp,yComp,width,height);

  • 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 Align ignores whitespaces

    Hi.
    I have a problem with text align in text field.
    Let's say that I have a text field with htmlText:
    "Text example          "
    - when I set align for this text field like this:
    var _format:TextFormat = new TextFormat();
    _format.align= TextFormatAlign.CENTER;
    text_field.setTextFormat(_format);
    - it ignores whitespaces at the end of the line.
    Same thing for TextFormatAlign.RIGHT.
    Can I change this behavior using new text layout framework?

    I don't think you can. TLF ignores trailing spaces when aligning text as well. And the decisions for where a glyph appears on a line are in the Player - not our actionscript code - so there isn't a way to override this in TLF.

  • Behaviors: change text color onMouseOver

    I have a series of projects in a list on the left side of my webpage.  They all have behaviors to where a image will swap onMouseOver. What would be the correct  code to make the project name change color  onMouseOver?  The website is http://archconarchitecture.com/portfolio.html.  I would also like to change the cursor to a hand.
    Here is the code I have now..
      #projectlist {
        font-family: Arial, Helvetica, sans-serif;
        font-size: 12px;
        font-style: normal;
        line-height: normal;
        color: #999;
        background-color: #000;
        height: 533px;
        width: 200px;
        overflow-y: scroll;
        text-align: center;
        font-weight: normal;
      </style>
      <script type="text/javascript">
    function MM_preloadImages() { //v3.0
      var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
        var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
        if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
    function MM_swapImgRestore() { //v3.0
      var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
    function MM_findObj(n, d) { //v4.01
      var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
        d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
      if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
      for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
      if(!x && d.getElementById) x=d.getElementById(n); return x;
    function MM_swapImage() { //v3.0
      var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
       if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
      </script>
      </head>
      <body onload="MM_preloadImages('Suzuki- New Braunfels.JPG','Blossom Storage- San Antonio, TX.jpg','Loop 360 Climatized Self Storage- Austin, TX.jpg','Frisco Storage- Frisco, TX.jpg','Potranco Storage- Bexar County, TX.jpg','Embarcadero Storage- Laredo, TX.jpg','A-AAAKey Storage- San Antonio, TX.jpg','Premier Storage Crestway- San Antonio, TX.jpg','Hill Country Climatized Storage- New Braunfels, TX.jpg','Eldridge Storage- Houston, TX.jpg','3009 Self Storage- Schertz, TX.jpg','Spring Climatized Storage- Spring, TX.jpg','World Gym-New Braunfels, TX.jpg','World Gym-San Marcos, TX.jpg','Suzuki-Dallas, TX.jpg','Suzuki-New Braunfels, TX.jpg','Toyota- Boerne, TX.jpg','Break Check- Corpus Christi, TX.jpg','A-AAAKey Annex- San Antonio, TX.jpg','Stor Self Storage- San Antonio, TX.jpg','Premier Storage DeZavala- San Antonio, TX.jpg','Premier Storage Rittiman- San Antonio, TX.jpg','Il Sogno Restaurant- San Antonio, TX.JPG','Sandbar Restaurant- San Antonio, TX.jpg','Break Check- New Braunfels, TX.jpg','A-AAAKey Storage- Aurora, Colorado.jpg')">
      <div id="navBar"><a href="index.html">HOME</a> | <a href="about.html">ABOUT</a> | <a href="portfolio.html">PORTFOLIO</a> | <a href="references.html">REFERENCES</a> | <a href="contact.html"> CONTACT</a></div>
      <div id="background">
        <div id="about">
          <h2 align="center"> </h2>
          <div id="projects">
            <table width="98%" border="0" cellpadding="0" cellspacing="5">
              <tr>
                <th width="23%" align="left" valign="top" scope="row"><div id="projectlist">
                  <h3><u>PROJECTS</u></h3>
                  <p onmouseover="MM_swapImage('main','','World Gym-San Marcos, TX.jpg',1)">World Gym<br /> -San Marcos, Texas</p>
                  <p onmouseover="MM_swapImage('main','','World Gym-New Braunfels, TX.jpg',1)">World Gym<br /> -New Braunfels, Texas</p>
                  <p onmouseover="MM_swapImage('main','','Suzuki-Dallas, TX.jpg',1)">Suzuki<br />
                  -Dallas, Texas</p>
                  <p onmouseover="MM_swapImage('main','','Suzuki-New Braunfels, TX.jpg',1)">Suzuki<br /> -New Braunfels, Texas</p>
                  <p onmouseover="MM_swapImage('main','','Toyota- Boerne, TX.jpg',1)">Toyota of Boerne<br /> -Boerne, Texas</p>
                  <p onmouseover="MM_swapImage('main','','Break Check- Corpus Christi, TX.jpg',1)">Break Check<br />
                  -Corpus Christi, Texas</p>
                  <p onmouseover="MM_swapImage('main','','Break Check- New Braunfels, TX.jpg',1)">Break Check<br />
                  -New Braunfels, Texas</p>
                  <p onmouseover="MM_swapImage('main','','Spring Climatized Storage- Spring, TX.jpg',1)">Spring Climatized Storage<br />
                  -Spring, Texas</p>
                  <p onmouseover="MM_swapImage('main','','3009 Self Storage- Schertz, TX.jpg',1)">3009 Self Storage<br /> -Schertz, Texas</p>
                  <p onmouseover="MM_swapImage('main','','A-AAAKey Annex- San Antonio, TX.jpg',1)">A-AAAKey Annex<br /> -San Antonio, Texas</p>
                  <p onmouseover="MM_swapImage('main','','A-AAAKey Storage- Aurora, Colorado.jpg',1)">A-AAAKey Storage<br /> 
                  -Aurora, Colorado</p>
                  <p onmouseover="MM_swapImage('main','','Premier Storage DeZavala- San Antonio, TX.jpg',1)">Premier Storage DeZavala<br /> -San Antonio, Texas</p>
                  <p onmouseover="MM_swapImage('main','','Premier Storage Rittiman- San Antonio, TX.jpg',1)">Premier Storage Rittiman<br /> -San Antonio, Texas</p>
                  <p onmouseover="MM_swapImage('main','','Eldridge Storage- Houston, TX.jpg',1)">Eldridge Storage<br /> -Houston, Texas</p>
                  <p onmouseover="MM_swapImage('main','','Stor Self Storage- San Antonio, TX.jpg',1)">Stor Self Storage<br /> -San Antonio, Texas</p>
                  <p onmouseover="MM_swapImage('main','','Hill Country Climatized Storage- New Braunfels, TX.jpg',1)">Hill Country Climatized Storage<br />
                    -New Braunfels, Texas</p>
                  <p onmouseover="MM_swapImage('main','','Il Sogno Restaurant- San Antonio, TX.JPG',1)">il Sogno Restaurant<br /> -San Antonio, Texas</p>
                  <p onmouseover="MM_swapImage('main','','Sandbar Restaurant- San Antonio, TX.jpg',1)">Sandbar Restaurant<br /> -San Antonio, Texas</p>
                  <p>Teka Molino Restaurant<br /> -San Antonio, Texas</p>
                  <p>Palominos Mexican Grille<br /> -San Antonio ,Texas</p>
                  <p>Wild West Nightclub<br /> -San Antonio, Texas</p>
                  <p>Housing One Source<br /> -San Antonio, Texas</p>
                  <p>Westin Fitness Center<br /> -San Antonio, Texas</p>
                  <p> </p>
                  <h3><u>ON THE BOARDS</u></h3>
                  <p onmouseover="MM_swapImage('main','','Blossom Storage- San Antonio, TX.jpg',1)">Blossom Storage<br /> -San Antonio, Texas</p>
                  <p onmouseover="MM_swapImage('main','','Embarcadero Storage- Laredo, TX.jpg',1)">Embarcadero Storage<br /> -Laredo, Texas</p>
                  <p onmouseover="MM_swapImage('main','','Loop 360 Climatized Self Storage- Austin, TX.jpg',1)">Loop 360 Climatized Storage<br /> -Austin, Texas</p>
                  <p onmouseover="MM_swapImage('main','','A-AAAKey Storage- San Antonio, TX.jpg',1)">A-AAAKey Storage<br /> -San Antonio, Texas</p>
                  <p>Stor Self Storage<br /> -San Antonio, Texas</p>
                  <p onmouseover="MM_swapImage('main','','Premier Storage Crestway- San Antonio, TX.jpg',1)">Premier Storage<br />  -San Antonio, Texas</p>
                  <p onmouseover="MM_swapImage('main','','Potranco Storage- Bexar County, TX.jpg',1)">Potranco  Storage<br />
                  -Bexar County, Texas</p>
                  <p onmouseover="MM_swapImage('main','','Frisco Storage- Frisco, TX.jpg',1)">Frisco Storage<br />
                  -Frisco, Texas
                </div></th>
                <td width="77%"><img src="World Gym-San Marcos, TX.jpg" alt="" name="main" width="671" height="518" border="8" id="main" /></td>
              </tr>
            </table>
          </div>
          <div id="ontheboards">
            <p> </p>
          </div>
        </div>
      </div>
      </body>
      </html>
    </div>
    Thanks,

    it didnt work..did I do it correctly??
    Here's what I have..
      #projectlist {
        font-family: Arial, Helvetica, sans-serif;
        font-size: 12px;
        font-style: normal;
        line-height: normal;
        color: #999;
        background-color: #000;
        height: 533px;
        width: 200px;
        overflow-y: scroll;
        text-align: center;
        font-weight: normal;
        cursor: crosshair;
      a:hover {
        color: #FFF;
        text-decoration: none;
      </style>
      <script type="text/javascript">
    function MM_preloadImages() { //v3.0
      var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
        var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
        if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
    function MM_swapImgRestore() { //v3.0
      var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
    function MM_findObj(n, d) { //v4.01
      var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
        d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
      if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
      for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
      if(!x && d.getElementById) x=d.getElementById(n); return x;
    function MM_swapImage() { //v3.0
      var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
       if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
      </script>
      </head>
      <body onload="MM_preloadImages('Suzuki- New Braunfels.JPG','Blossom Storage- San Antonio, TX.jpg','Loop 360 Climatized Self Storage- Austin, TX.jpg','Frisco Storage- Frisco, TX.jpg','Potranco Storage- Bexar County, TX.jpg','Embarcadero Storage- Laredo, TX.jpg','A-AAAKey Storage- San Antonio, TX.jpg','Premier Storage Crestway- San Antonio, TX.jpg','Hill Country Climatized Storage- New Braunfels, TX.jpg','Eldridge Storage- Houston, TX.jpg','3009 Self Storage- Schertz, TX.jpg','Spring Climatized Storage- Spring, TX.jpg','World Gym-New Braunfels, TX.jpg','World Gym-San Marcos, TX.jpg','Suzuki-Dallas, TX.jpg','Suzuki-New Braunfels, TX.jpg','Toyota- Boerne, TX.jpg','Break Check- Corpus Christi, TX.jpg','A-AAAKey Annex- San Antonio, TX.jpg','Stor Self Storage- San Antonio, TX.jpg','Premier Storage DeZavala- San Antonio, TX.jpg','Premier Storage Rittiman- San Antonio, TX.jpg','Il Sogno Restaurant- San Antonio, TX.JPG','Sandbar Restaurant- San Antonio, TX.jpg','Break Check- New Braunfels, TX.jpg','A-AAAKey Storage- Aurora, Colorado.jpg')">
      <div id="navBar"><a href="index.html">HOME</a> | <a href="about.html">ABOUT</a> | <a href="portfolio.html">PORTFOLIO</a> | <a href="references.html">REFERENCES</a> | <a href="contact.html"> CONTACT</a></div>
      <div id="background">
        <div id="about">
          <h2 align="center"> </h2>
          <div id="projects">
            <table width="98%" border="0" cellpadding="0" cellspacing="5">
              <tr>
                <th width="23%" align="left" valign="top" scope="row"><div id="projectlist">
                  <h3><u>PROJECTS</u></h3>
                  <p onmouseover="MM_swapImage('main','','World Gym-San Marcos, TX.jpg',1)">World Gym<br /> -San Marcos, Texas</p>
                  <p onmouseover="MM_swapImage('main','','World Gym-New Braunfels, TX.jpg',1)">World Gym<br /> -New Braunfels, Texas</p>
                  <p onmouseover="MM_swapImage('main','','Suzuki-Dallas, TX.jpg',1)">Suzuki<br />
                  -Dallas, Texas</p>
                  <p onmouseover="MM_swapImage('main','','Suzuki-New Braunfels, TX.jpg',1)">Suzuki<br /> -New Braunfels, Texas</p>
                  <p onmouseover="MM_swapImage('main','','Toyota- Boerne, TX.jpg',1)">Toyota of Boerne<br /> -Boerne, Texas</p>
                  <p onmouseover="MM_swapImage('main','','Break Check- Corpus Christi, TX.jpg',1)">Break Check<br />
                  -Corpus Christi, Texas</p>
                  <p onmouseover="MM_swapImage('main','','Break Check- New Braunfels, TX.jpg',1)">Break Check<br />
                  -New Braunfels, Texas</p>
                  <p onmouseover="MM_swapImage('main','','Spring Climatized Storage- Spring, TX.jpg',1)">Spring Climatized Storage<br />
                  -Spring, Texas</p>
                  <p onmouseover="MM_swapImage('main','','3009 Self Storage- Schertz, TX.jpg',1)">3009 Self Storage<br /> -Schertz, Texas</p>
                  <p onmouseover="MM_swapImage('main','','A-AAAKey Annex- San Antonio, TX.jpg',1)">A-AAAKey Annex<br /> -San Antonio, Texas</p>
                  <p onmouseover="MM_swapImage('main','','A-AAAKey Storage- Aurora, Colorado.jpg',1)">A-AAAKey Storage<br /> 
                  -Aurora, Colorado</p>
                  <p onmouseover="MM_swapImage('main','','Premier Storage DeZavala- San Antonio, TX.jpg',1)">Premier Storage DeZavala<br /> -San Antonio, Texas</p>
                  <p onmouseover="MM_swapImage('main','','Premier Storage Rittiman- San Antonio, TX.jpg',1)">Premier Storage Rittiman<br /> -San Antonio, Texas</p>
                  <p onmouseover="MM_swapImage('main','','Eldridge Storage- Houston, TX.jpg',1)">Eldridge Storage<br /> -Houston, Texas</p>
                  <p onmouseover="MM_swapImage('main','','Stor Self Storage- San Antonio, TX.jpg',1)">Stor Self Storage<br /> -San Antonio, Texas</p>
                  <p onmouseover="MM_swapImage('main','','Hill Country Climatized Storage- New Braunfels, TX.jpg',1)">Hill Country Climatized Storage<br />
                    -New Braunfels, Texas</p>
                  <p onmouseover="MM_swapImage('main','','Il Sogno Restaurant- San Antonio, TX.JPG',1)">il Sogno Restaurant<br /> -San Antonio, Texas</p>
                  <p onmouseover="MM_swapImage('main','','Sandbar Restaurant- San Antonio, TX.jpg',1)">Sandbar Restaurant<br /> -San Antonio, Texas</p>
                  <p>Teka Molino Restaurant<br /> -San Antonio, Texas</p>
                  <p>Palominos Mexican Grille<br /> -San Antonio ,Texas</p>
                  <p>Wild West Nightclub<br /> -San Antonio, Texas</p>
                  <p>Housing One Source<br /> -San Antonio, Texas</p>
                  <p>Westin Fitness Center<br /> -San Antonio, Texas</p>
                  <p> </p>
                  <h3><u>ON THE BOARDS</u></h3>
                  <p onmouseover="MM_swapImage('main','','Blossom Storage- San Antonio, TX.jpg',1)">Blossom Storage<br /> -San Antonio, Texas</p>
                  <p onmouseover="MM_swapImage('main','','Embarcadero Storage- Laredo, TX.jpg',1)">Embarcadero Storage<br /> -Laredo, Texas</p>
                  <p onmouseover="MM_swapImage('main','','Loop 360 Climatized Self Storage- Austin, TX.jpg',1)">Loop 360 Climatized Storage<br /> -Austin, Texas</p>
                  <p onmouseover="MM_swapImage('main','','A-AAAKey Storage- San Antonio, TX.jpg',1)">A-AAAKey Storage<br /> -San Antonio, Texas</p>
                  <p>Stor Self Storage<br /> -San Antonio, Texas</p>
                  <p onmouseover="MM_swapImage('main','','Premier Storage Crestway- San Antonio, TX.jpg',1)">Premier Storage<br />  -San Antonio, Texas</p>
                  <p onmouseover="MM_swapImage('main','','Potranco Storage- Bexar County, TX.jpg',1)">Potranco  Storage<br />
                  -Bexar County, Texas</p>
                  <p onmouseover="MM_swapImage('main','','Frisco Storage- Frisco, TX.jpg',1)">Frisco Storage<br />
                  -Frisco, Texas
                </div></th>
                <td width="77%"><img src="World Gym-San Marcos, TX.jpg" alt="" name="main" width="671" height="518" border="8" id="main" /></td>
              </tr>
            </table>
          </div>
          <div id="ontheboards">
            <p> </p>
          </div>
        </div>
      </div>
      </body>
      </html>
    </div>

  • Another text alignment issue

    Dear friends,
    I've got this div which makes up for a left column on my page and stacked therein I've got some images with some captions underneath. Now, my problem is: I want the images aligned center within that div but the text, I need it to be justified and what happens is that if I style the div>box to center the text gets centered as well. I tried creating a new class style for the text alone but the div style overules it. What should I do?
    p-s: this is DW CS4 I'm using now (to make it worse)
    Thanks a lot for your help
    JV

    If I understand you correctlyu, you want that chocolate image to center... The easiist way I can think of is to put it in it's own div and put a class rule.  So go to code view and find this
    <img src="Chocolate em Cascais.jpg" alt="Chocolate em Cascais" width="170" height="242" />
    Change it to this
    <div class="center">< img src="Chocolate em Cascais.jpg" alt="Chocolate em Cascais" width="170" height="242" /></div>
    Next in your code find this
    #left_area .style4 {
         font-family: Verdana, Arial, Helvetica, sans-serif;
         font-size: small;
         text-align: left;
    and add this after the last }
    .center {
    margin:0px auto;
    text-align:center;
    See what that does for you.
    Gary

  • Why Are My Text Align Buttons Grayed Out?

    My users are unable to center text when edited pages in CS3 and CS4. The standard paragraph alignment buttons are grayed out.
    All the users of my site have Admin role, and I have set up the role to allow unrestricted editing. And "Allow Users to Apply Styles"... At screenshot of some of my settings is attached. I don't see why Contribute is not allowing this basic element to work.
    Why Are My Text Align Buttons Grayed Out?
    Any help would be greatly appreciated.

    I experienced the very same issue, but found an interesting quick-fix that worked for us.
    Several of my webpage content managers reported that they could not change the text alignment in pages created using Dreamweaver nested templates. We use nested editable regions in order to restrict portions of the pages (i.e. banners and navigation menus) from being edited.
    I found that Contribute CS4 could realign text in some parts of the affected pages, but not others.
    Further exam revealed that Contribute could change the alignment on any text that was inside a table on those pages. If I inserted a table and then cut-n-pasted the problem text into the table, the text lost its style/formatting, but it could then have its alignment changed.
    Any text not inside a table could not have the alignment changed by Contribute and changing its style/formatting made no difference.
    One note though: It was interesting that after pasting the text into a table, if I selected a chunk of text, the alignment buttons grayed out again. However, if I simply clicked on the line of text (did not select it), the buttons remained active and the text alignment could be changed.
    I don't know why it is happening. The nested regions were working fine, or so I thought, until recently.
    The above is a quick-fix and got my page content managers back online, but I'm still searching for a long-term solution if anyone has one.
    Good luck...
    GaryC3706

  • Adobe Captivate - Multiple Choice Quiz Question - Radio Button and Text Alignment

    I have created a quiz with multiple choice questions.
    No matter what I do I cannot align the radio button and the text for the choices (see below).
    I would like to align the center of the radio button with the center of the letter A) and B).
    I have tried every option that I can think of in the Properties options.
    Please let me know if anyone has a solution for this.
    Thank you

    Thanks for the reply.
    Previously I tried several different combinations of fonts and font sizes, but didn't see any change.
    Does anyone else know of anything else that could effect this situation?

  • ADF 11g: Change Text Value within af:dialog

    Any guidance much appreciated: I'm new to ADF 11g and java scripting...
    I have a popup containing a dialog inside my af:document. I want to be able to dynamically change the text message being displayed inside the dialog at runtime prior to showing the popup. I have added an af:panelGroupLayout inside the dialog component, with an af:outputText component inside that.
    <af:popup id="nexusAlertPopup">
    <af:dialog id="nexusAlert"
    inlineStyle="vertical-align:top; text-align:left; font-size:small;"
    type="ok" closeIconVisible="false" title="Change Me"
    affirmativeTextAndAccessKey="Continue">
    <af:panelGroupLayout id="nexusAlertPanelGroup">
    <af:outputText id="nexusAlertText"/>
    </af:panelGroupLayout>
    </af:dialog>
    </af:popup>
    When I look at the ADF javascript API, I cannot find a set method to change the value of the outputText in my JS Function. Can you use a normal setAttribute method on any ADF object?
    Regards,
    Mario

    Branislav Nemec wrote:
    Is there a particular reason you need to change the title in JS function?Thanks for your reply Branislav.
    To make a short story long: I am trying to create a dynamic popup dialog on an ADF page template. We have Oracle Form Modules which are being clipped inside this center panel of the pages using this template and the communication between the ADF application and our Forms application happens through JS on the client. What I need to do is on the Forms side, override all forms alerts with a call to a JS Function which would popup a synchronous ADF dialog and return the result back to Forms in a Global variable. So the text of the alert needs to be dynamically passed through and this needs to preferably happen on the client side without a roundtrip to the ADF server. If it is possible. Also, it is not the TITLE I am concerned about as there is a setTitle() method in the AdfRichDialog class.
    Hope this sheds some light on the issue...

  • Text Align and Other annoyances

    I have upgraded from CS3 to CS5 and while i am mostly happy there are some really annoying bugs, features, or pieces of ill thought out logic in Dreamweaver.
    I might be wrong but by default Dreamweaver is a a WYSIWYG editor. Therefore this should make it ideal for editing websites which have text in them. Lets assume that websites include single email campaigns, small static HTML brochure sites, through to large scale CMS websites. In each of these cases i might have the need to align a single piece of text to the right.
    Now DW suggests everything like this should be driven by CSS. In in 90% of cases for general text layout i would agree i.e. default paragraph text size, default alignment, default line spacing, etc. These can then easily be adjusted throughout the website large or small by changing a simple bit off CSS in your style sheet.
    But what if you just need 1 line of text to be different from "default" - CSS is not approrpiate here, and infact it would result in more code to achieve the same goal. why should i have to write a new style into my style sheet, and then link it with a class name, when a simple align="right" will work in that instance. In fact in all instances the chances are that piece of code will be shorter than the class="text-right" definition to apply the CSS (ignoring the CSS code too).
    So why take the align buttons off the property inspector bar? Why make the developers life harder when he is using a tool to make it easier?
    Another issue - which probably is more of a bug than anything. In code, Shift + Tab should outdent the code right. Highlight a block of code and this works. Why then does doing this for a single line of code delete the code?
    I upgraded from CS3 because i was told that was the worst performing version of creative suite out there. And it was buggy as hell. But i am now finding that CS5 is not a great deal better - this applies through the other products too with Illustrator crashing as much as it ever did, il thought out removed features, etc. I am appalled by the quality of the new CS5 - especially as in my upgrade the fee was a good 30% more expensive than the american alternative.
    And before you ask - the machine where i am experiencing this is more than adequate, Quad Core, 6gig of Ram, and on a fresh install of Windows 7.
    An unhappy customer.

    You may need to adjust your workflow to get the most out of CSS.
    I find it works much better to identify the CSS IDs, selectors and class names I will be using in the site.  This bit of pre-planning gives me a basic stylesheet from which I can grab styles at will and add more to as needed.
    /**BASIC LAYOUT**/
    #wrapper { }
    #header { }
    #content { }
    #footer { }
    /**TEXT STYLES**/
    #header h1 { }
    #content h2 { }
    #content h3 { }
    #content p { }
    #footer p { }
    /**RE-USABLE CLASSES**/
    .floatLt {float:left; width: 40%;}
    .floatRt {float:right; width: 40%}
    .clearing {clear:both}
    .center {text-align:center}
    .right {text-align:right}
    /**LINKS**/
    a { }
    a:link { }
    a:visited { ]
    a:hover,
    a:active,
    a:focus { }
    And if you plug all this into an external CSS file to which your HTML documents are linked, sitewide style changes take a minute or two instead of weeks and hours.
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists
    http://alt-web.com/
    http://twitter.com/altweb

  • JTable text alignment issues when using JPanel as custom TableCellRenderer

    Hi there,
    I'm having some difficulty with text alignment/border issues when using a custom TableCellRenderer. I'm using a JPanel with GroupLayout (although I've also tried others like FlowLayout), and I can't seem to get label text within the JPanel to align properly with the other cells in the table. The text inside my 'panel' cell is shifted downward. If I use the code from the DefaultTableCellRenderer to set the border when the cell receives focus, the problem gets worse as the text shifts when the new border is applied to the panel upon cell selection. Here's an SSCCE to demonstrate:
    import java.awt.Color;
    import java.awt.Component;
    import java.awt.EventQueue;
    import javax.swing.GroupLayout;
    import javax.swing.JFrame;
    import javax.swing.JLabel;
    import javax.swing.JPanel;
    import javax.swing.JTable;
    import javax.swing.border.Border;
    import javax.swing.table.TableCellRenderer;
    import javax.swing.table.TableColumn;
    import sun.swing.DefaultLookup;
    public class TableCellPanelTest extends JFrame {
      private class PanelRenderer extends JPanel implements TableCellRenderer {
        private JLabel label = new JLabel();
        public PanelRenderer() {
          GroupLayout layout = new GroupLayout(this);
          layout.setHorizontalGroup(layout.createParallelGroup().addComponent(label));
          layout.setVerticalGroup(layout.createParallelGroup().addComponent(label));
          setLayout(layout);
        public Component getTableCellRendererComponent(JTable table, Object value, boolean isSelected, boolean hasFocus, int row, int column) {
          if (isSelected) {
            setBackground(table.getSelectionBackground());
          } else {
            setBackground(table.getBackground());
          // Border section taken from DefaultTableCellRenderer
          if (hasFocus) {
            Border border = null;
            if (isSelected) {
              border = DefaultLookup.getBorder(this, ui, "Table.focusSelectedCellHighlightBorder");
            if (border == null) {
              border = DefaultLookup.getBorder(this, ui, "Table.focusCellHighlightBorder");
            setBorder(border);
            if (!isSelected && table.isCellEditable(row, column)) {
              Color col;
              col = DefaultLookup.getColor(this, ui, "Table.focusCellForeground");
              if (col != null) {
                super.setForeground(col);
              col = DefaultLookup.getColor(this, ui, "Table.focusCellBackground");
              if (col != null) {
                super.setBackground(col);
          } else {
            setBorder(null /*getNoFocusBorder()*/);
          // Set up our label
          label.setText(value.toString());
          label.setFont(table.getFont());
          return this;
      public TableCellPanelTest() {
        JTable table = new JTable(new Integer[][]{{1, 2, 3}, {4, 5, 6}}, new String[]{"A", "B", "C"});
        // set up a custom renderer on the first column
        TableColumn firstColumn = table.getColumnModel().getColumn(0);
        firstColumn.setCellRenderer(new PanelRenderer());
        getContentPane().add(table);
        pack();
      public static void main(String[] args) {
        EventQueue.invokeLater(new Runnable() {
          public void run() {
            new TableCellPanelTest().setVisible(true);
    }There are basically two problems:
    1) When first run, the text in the custom renderer column is shifted downward slightly.
    2) Once a cell in the column is selected, it shifts down even farther.
    I'd really appreciate any help in figuring out what's up!
    Thanks!

    1) LayoutManagers need to take the border into account so the label is placed at (1,1) while labels just start at (0,0) of the cell rect. Also the layout manager tend not to shrink component below their minimum size. Setting the labels minimum size to (0,0) seems to get the same effect in your example. Doing the same for maximum size helps if you set the row height for the JTable larger. Easier might be to use BorderLayout which ignores min/max for center (and min/max height for west/east, etc).
    2) DefaultTableCellRenderer uses a 1px border if the UI no focus border is null, you don't.
    3) Include a setDefaultCloseOperation is a SSCCE please. I think I've got a hunderd test programs running now :P.

  • Text in profit center documsnts

    Hi ,
    We have a issue. Please can you help us in this.
    When text is entered while creating FI Document , it appears correctly in the corresponding profice center document, but when the text is changed , the change doesnot get effect in Profit center document. i.e. profit center document shows old text only. Please can you guide why this happens ?
    Thanks & Regards
    Bhairavi

    1KE8 can be used but it will rever the old profit center doc and create new.
    SEE SAP Note bellow
    Summary
    Symptom
    You change an item text in an FI document using transaction FB02. This is changed in the CO document, but the new item text is not displayed correctly in the profit center document.
    Other terms
    FB02, item text, SGTXT
    Reason and Prerequisites
    The item text is automatically transferred only during the first posting from the FI document to the profit center document. On the other hand, the change is transferred to the CO document, because FI triggers the change in CO using the module K_FI_DOCUMENT_CHANGE. For the profit center accounting, there is no such function module. So that the item text information can be transferred, the Accounting interface must be run. However, this will not run if the FI document is only changed.
    Solution
    In order to transfer the item text change to the profit center accounting, you must subsequently post the FI document using transaction 1KE8. For this, you MUST set the reversal switch.

Maybe you are looking for