Is it possible to get text div to auto size?

I created an empty text box div with width 0 and height 0. I would like it to expand to accomodate text assigned to it in code to fit in one line on the click of a button. How would I do this without pre determining the width of the box?

I finally found how to change the css text properties of a text box (div) in the compositionName_edge.js file that Edge generates when you save the project so that the text box would resize dynamically something like Flash dynamic text fields that resize to the left depending on the text you give it in code.
In the file look for id:'name_of_your_text_div' and under rect:[ the last 4 items should be set to auto].
Then look for states object and under "${_name_of_your_text_div}" remove all styles execept top and left.
I'm hoping that Adobe will eventually make it easier to do that in the properties panel.

Similar Messages

  • Is it possible to get Win 7 to auto start VPN connection?

    Hey all,
    Is it possible to get Windows 7 to auto start VPN connection? Or can you recommend a 3rd Party VPN client application?
    thanks

    To make a batch file. exe or cmd, you need to open a notepad. Go to Start-All Programs -Accessories and click on Notepad. In notepad type in
    rasphone -d ****** where is ****** a name of your VPN connection
    For example: your Vpn connection is called My VPN
    The command line will be:
    rasphone -d My VPN
    Then, save as .cmd or .bat for example. Vpn.cmd
    2. Then, Go to Start-All programs -Startup Folder. Click on it with a mouse right button and drag the Vpn.cmd file (file you've made in a notepad). Now, you should see it in startup folder.
    3 Right click on your Vpn connection, choose properties. Go to the ,,Option menu,, and Unmark (if marked) -prompt for user name and password, certificate etc. And press Ok.
    Restart the laptop. if everything is ok, you will see appearing Command prompt after Windows logging. It connects automatically and disappears.

  • Two days ago I downloaded an apple update, my screen then became super sized, a page won't fit within the screen. How do I get text back to the size it was before the update? Thanks,SM

    After a recent update my screen became super sized, how do I get it back to normal size?

    Good call, except that only turns on/off the Universal Access Preferences and not the Zoom using scroll wheel in the Mouse Preference.

  • How to get text from column  labels in pivot using javascript?

    Hi, is it possible to get text from column labels in pivot using javascript? How?

    You don't get a response from a URLRequest, you get the response from a URLLoader:
    View this sample page for URLRequest and URLLoader and I think it'll make more sense to you.
    http://help.adobe.com/en_US/air/reference/html/flash/net/URLRequest.html#URLRequest()

  • Get text in image

    Hi everyone! ,
    In my Indesign document having one links of image.
    then how to get text of links?
                    The image is always contains text. Is it possible to get text in image ?
    please help me.
    thanks by,
    John peter.

    Thank you Jarek.
    my image is .GIF format, it's having some paragraph of text .
    After that placing the file (.GIF image file) in active document .
    How can i get the text of image?
    please help me
    thanks again by,
    John peter.

  • Getting Text onto One TV in the Objects Tab

    Hey All,
    I'm trying to put some text onto one tv in the objects tab in Live Type and
    I can't even get text to show up on one of them. In the users manual it only
    tells you how to get the tv onto a track but not how to get text onto the 'screen'.
    Is it possible to get text onto one screen?
    Thanks
    Ted

    For this effect I would suggest the following:
    Put the TV (like the horizontal TV slide) on the bottom track
    Put a text track on top of that
    Add the "TV Off" Effect to the text track...found in the "Mechanical" Category
    with the effect highlighted click on the "Timing" tab in the Inspector and in the "Speed" box change it from the default "reverse" to "forward"
    Adjust the positioning on your timeline to coincide with the TV motion
    It will now look like it's part of the TV

  • I was in a conversation with a colleague and a text (identical) came to both of our phones, when he researched it, it said it was blocked and I thought I might see where it came from through my phone. Is it possible to get a spam like that to our phones

    I was in a conversation with a colleague and a text (identical) came to both of our phones, when he researched it, it said it was blocked and I thought I might see where it came from through my phone. Is it possible to get a spam like that to our phones at the same time.If the text came to my number marked from him, it could only have been from him?. Is there a possibility that someone else sent it to both of us at the same time?

    Yes, it could be spam. I get spam text from time to time. Yes, you both could have gotten the same spam at the same time. Spammers re sending out thousands and thousands of messages.

  • Is it possible to get the my searchengines back vertical with text as it always was, instead of seeing only the icons ?

    in the menu bar at the top, there's the search bar. I have a lot of searchengines, and they show up when you press on the magnifying glass.
    however since the latest update i guess. I only see the icons of my searchengines.
    Is it possible to get them back vertically with text on the right of the icons. because i had them arranged in a specific order and knew exactly where the click when i performed a specific search.
    now with only icons, it is more difficult because i have to hover over them to see the text which icon wich searchengine is.
    so, i hope i can get them back to show up vertically :) with accompanied text.
    best regards, dinny
    image : http://dinny.be/ff/dit.jpg

    That is the new Search Bar scheme which was introduced in Firefox 34, back in early December.
    You can revert to the former scheme like this.
    Open up '''about:config''' ''(typed in the Location Bar)''
    Right-click and toggle this preference to '''''false'''''
    '''browser.search.showOneOffButtons'''
    Then restart Firefox.

  • Is it possible to get images automatically into text captions while simulation recording?

    Is it possible to get images automatically into text captions while simulation recording?

    I want that will be like described below (as it works in another software for captioning):

  • How to get text to align to the very top of a DIV?

    How to get text to align to the very top of a DIV?
    There is a gap at the top. I am using in this example H1 and
    a paragraph tag.
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0
    Transitional//EN" "
    http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="
    http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html;
    charset=iso-8859-1" />
    <title>Text Alignment</title>
    <style type="text/css">
    body {
    background-color: #4a7186;
    p {
    font-family: Georgia, "Times New Roman", Times, serif;
    font-size: 2em;
    margin: 0px;
    padding: 0px;
    h1 {
    font-family: Georgia, "Times New Roman", Times, serif;
    font-size: 3em;
    margin: 0px;
    padding: 0px;
    #box1 {
    width: 450px;
    background-color: #FFFFFF;
    margin-right: auto;
    margin-left: auto;
    margin-top: 30px;
    padding: 0px;
    margin-bottom: 0px;
    #box2 {
    width: 300px;
    background-color: #FFFFFF;
    margin-right: auto;
    margin-left: auto;
    margin-top: 30px;
    padding: 0px;
    margin-bottom: 0px;
    </style>
    </head>
    <body>
    <div id="box1">
    <h1>Lorem ipsum H1</h1>
    </div>
    <div id="box2">
    <p>Lorem ipsum P</p>
    </div>
    </body>
    </html>

    <h1 style="margin-top:0;">Lorem ipsum H1</h1>
    It's a margin issue in SOME browsers.
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    ==================
    "davidhelp" <[email protected]> wrote in
    message
    news:gpbg8q$8c6$[email protected]..
    > How to get text to align to the very top of a DIV?
    > There is a gap at the top. I am using in this example H1
    and a paragraph
    > tag.
    >
    >
    >
    > <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0
    Transitional//EN"
    > "
    http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    > <html xmlns="
    http://www.w3.org/1999/xhtml">
    > <head>
    > <meta http-equiv="Content-Type" content="text/html;
    charset=iso-8859-1" />
    > <title>Text Alignment</title>
    > <style type="text/css">
    > body {
    > background-color: #4a7186;
    > }
    > p {
    > font-family: Georgia, "Times New Roman", Times, serif;
    > font-size: 2em;
    > margin: 0px;
    > padding: 0px;
    > }
    >
    >
    >
    > h1 {
    > font-family: Georgia, "Times New Roman", Times, serif;
    > font-size: 3em;
    > margin: 0px;
    > padding: 0px;
    > }
    >
    > #box1 {
    > width: 450px;
    > background-color: #FFFFFF;
    > margin-right: auto;
    > margin-left: auto;
    > margin-top: 30px;
    > padding: 0px;
    > margin-bottom: 0px;
    > }
    >
    > #box2 {
    > width: 300px;
    > background-color: #FFFFFF;
    > margin-right: auto;
    > margin-left: auto;
    > margin-top: 30px;
    > padding: 0px;
    > margin-bottom: 0px;
    > }
    > </style>
    > </head>
    >
    > <body>
    >
    > <div id="box1">
    > <h1>Lorem ipsum H1</h1>
    > </div>
    >
    > <div id="box2">
    > <p>Lorem ipsum P</p>
    > </div>
    >
    > </body>
    > </html>
    >
    >

  • Can't get my divs side by side and tried everything

    i am new to DW and am really struggling
    i am simply trying to get my DIVs side by side by floating left and floating right inside a wrapper DIV
    thye just always end up one ontop of the other
    here's the html can someone have a look for me i have been struggling with this for days and rebuilt the site 3 times.
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <title>suffolk international film festval</title>
    <link rel="stylesheet" type="text/css" href="default.css"/>
    <style type="text/css">
    #wrapper {
              background-color: #000;
              height: auto;
              width: 960px;
              margin-right: auto;
              margin-left: auto;
    #wrapper #nav {
              background-color: #000;
              float: right;
              height: 20px;
              width: auto;
    #wrapper #pics banner {
              height: 85px;
              width: 960px;
    #wrapper #main wrapper {
              background-color: #000;
              height: 600px;
              width: 960px;
              border: 2px dotted #C00;
    #wrapper #main wrapper #main left {
              background-color: #565656;
              float: left;
              height: 390px;
              width: 440px;
    #wrapper #main wrapper #main right wrapper {
              background-color: #565656;
              float: right;
              height: auto;
              width: 100;
              border-top-width: 2px;
              border-right-width: 2px;
              border-bottom-width: 2px;
              border-left-width: 2px;
              border-top-style: dotted;
              border-right-style: dotted;
              border-bottom-style: dotted;
              border-left-style: dotted;
    </style>
    <script type="text/javascript">
    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_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_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('images/nav-bar-over_01.gif','images/nav-bar-over_02.gif','image s/nav-bar-over_03.gif','images/nav-bar-over_04.gif','images/nav-bar-over_05.gif','images/n av-bar-over_06.gif','images/nav-bar-over_07.gif')">
    <div id="wrapper">
              <div id="banner"><img src="images/banner_01.gif" width="960" height="116" alt="banner" /></div>
        <div id="nav"><a href="index test.html" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('home','','images/nav-bar-over_01.gif',1)"><img src="images/nav-bar_01.gif" alt="home" name="home" width="81" height="20" border="0" id="home" /></a><a href="#" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('about us','','images/nav-bar-over_02.gif',1)"><img src="images/nav-bar_02.gif" name="about us" width="79" height="20" border="0" id="about us" /></a><a href="#" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('contact','','images/nav-bar-over_03.gif',1)"><img src="images/nav-bar_03.gif" name="contact" width="80" height="20" border="0" id="contact" /></a><a href="#" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('attend','','images/nav-bar-over_04.gif',1)"><img src="images/nav-bar_04.gif" name="attend" width="81" height="20" border="0" id="attend" /></a><a href="#" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('films','','images/nav-bar-over_05.gif',1)"><img src="images/nav-bar_05.gif" name="films" width="79" height="20" border="0" id="films" /></a><a href="#" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('supporters','','images/nav-bar-over_06.gif',1)"><img src="images/nav-bar_06.gif" name="supporters" width="80" height="20" border="0" id="supporters" /></a><a href="#" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('team','','images/nav-bar-over_07.gif',1)"><img src="images/nav-bar_07.gif" name="team" width="80" height="20" border="0" id="team" /></a></div>
      <div id="pics banner"><img src="images/pics-banner.jpg" width="960" height="85" alt="banner2" /></div>
        <div id="main wrapper">
                  <div id="main left"></div>
            <div id="main right wrapper">
                      <div id="top">
                    <p>test</p>
                </div>
                <div id="bottom">
              </div>
            </div>
    </div>
        </div>
    </body>
    </html>

    It is important to keep things as simple as possible and not to introduce elements for the sake of it. As a case in mind is the #wrapper element. There are already two wrapper elements called html and body that we can use.
    To ensure that you do not run into problems in the future, use a CLASS instead of an ID. They both perform the same function with the exception that an ID is unique in each document.
    Copy and paste the following into a new document and view the result in your favourite browser.
    <!doctype html>
    <html>
    <head>
    <meta charset="utf-8">
    <title>Untitled Document</title>
    <style>
    * { /* USE A RESET INSTEAD - http://meyerweb.com/eric/tools/css/reset/*/
        padding: 0;
        margin: 0;
    *, *:before, *:after { /* http://www.paulirish.com/2012/box-sizing-border-box-ftw/ */
      -moz-box-sizing: border-box;
        -webkit-box-sizing: border-box;
        box-sizing: border-box;
    p, h1, h2, h3, h4 {
        padding: 1em 20px;
    html {
        background: #FFF;
        height: 100%;
    body {
        background: #CCC;
        margin: auto;
        width: 960px;
    .header {
        background: #060;
        color: #CCC;
    .nav {
        background: #000;
        color: #CCC;
    .aside {
        float: left;
        width: 30%;
    .article {
        background: #FFC;
        float: left;
        width: 70%;
    .article .feature {
        background: #F30;
        float: left;
        height: 150px;
        margin: 1.65%;
        width: 30%;
    .footer {
        background: #060;
        clear: both;
        color: #CCC;
    </style>
    </head>
    <body>
      <div class="header">
        <h1>HEADER</h1>
      </div>
      <div class="nav">
        <p>Navigation</p>
      </div>
      <div class="aside">
        <h3>Side Bar</h3>
      </div>
      <div class="article">
        <h2>Main Article</h2>
        <div class="feature">
            <h4>Feature 1</h4>
        </div>
        <div class="feature">
            <h4>Feature 2</h4>
        </div>
        <div class="feature">
            <h4>Feature 3</h4>
        </div>
      </div>
      <div class="footer">
        <p>Footer</p>
      </div>
    </body>
    </html>

  • I just got a macbook air for xmas- now i wont get texts on my iPhone. they go right to my laptop. how can i get the texts to go to BOTH devices?

    My hubby just got me a macbook air for Xmas which is awesome.  Set it up to be able to ichat on it as well as on my iphone.  Only now i wont get texts on my iphone- ONLY on my laptop.  How can i configure so that I can get texts on my computer AND my phone. NOT just one or the other? Please help!

    Hi,
    The Mac version will use your Apple ID as the first and only choice...
    ... Until you add the same Apple ID to Messages on the iPhone.
    Once this is done it is best to Restart the app on the Mac.
    This will then get at least one, possibly two pop up saying the iPhone in using the Apple ID and the iPhone Number.
    Accepting these Pop ups will enable the iPhone as an ID to be used in the Receive At List.
    It will also appear in the drop down at the bottom for "Start New Conversations from"
    If you did not set iyt up like this then remove the apple ID from the iPhone in the Settings > Messages.
    Place the iPhone in Airplane mode to break with the server.
    Take it out of Airplane Mode and re-add the Apple ID in the Messages settings.
    Then Restart the app on the Mac as above.
    Having done this you can still turn Off the Apple ID on the iPhone (receive as the iPhone number only) or disable the iPhone Number on the Mac (receive Apple ID stuff only)
    The Start New Conversations option on the Mac version means you could use the iPhone number so people don't get your email.
    8:26 pm      Thursday; December 26, 2013
      iMac 2.5Ghz 5i 2011 (Mavericks 10.9)
     G4/1GhzDual MDD (Leopard 10.5.8)
     MacBookPro 2Gb (Snow Leopard 10.6.8)
     Mac OS X (10.6.8),
     Couple of iPhones and an iPad

  • Is it possible to get the style, font and related info of a paragraph of a in design file and write it on the same in design file  on the  left side

    Is it possible to get the style, font and related info of a paragraph text  of a in design file and write  all the stuff on the same in design file  on the  left side with small fonts 
    as
    Lets  this is a text in in design file    :
    style : abc                      we are going to check the  condition  Agence Wallonne pour la Promotion d'une Agricultur we are going to check the  condition  Agence Wallonne pour la    font 12                                  d'une Agricultu we are going to check the  condition  Agence Wallonne pour la Promotion d'une Agricultu
    style : xyz                      we are going to check the  condition  Agence Wallonne pour la Promotion d'une Agricultur we are going to check the  condition  Agence Wallonne pour la    font 10                                  d'une Agricultu we are going to check the  condition  Agence Wallonne pour la Promotion d'une Agricultu

    Hi Poojith
    Not sure if this would solve your requirment but just in case might be helpful:
    1. We can mix up the HTML and HTMLB components in the JSP Page. However, can access only the HTMLB components in the controller. The following link refers to what customizations are offered by the HTMLB framework:
    [http://www.sapdesignguild.org/resources/htmlb_guidance/]
    2. Another option would be to use AbstractPortalComponents or a simple web app if that's feasible. (where custom UI themes, css and layout are more in control of the developers.)
    Thanks
    Deepak

  • XML DB: is it possible to get a row for each element in a container element?

    I have an XML document containing a container element (collection). If I query, using an XPath expression, the contained elements I get a row for each container element with the contained element concatenated. Is it possible to get a row for each contained element?
    I run this simple query:
    select extract(xmltype('<colors><color>Red</color><color>Green</color></colors>')
    , '/colors/color/text()').getstringval() from dual
    And get this result:
    EXTRACT(XMLTYPE('<COLORS><COLOR>RED</COLOR><COLOR>GREEN</COLOR></COLORS>'),'/COL
    RedGreen
    1 row selected.
    What I would like to have is:
    Red
    Green
    2 rows selected.
    Wishful thinking or possible? Many thanks!

    Sure. This is where our XMLSequence() function comes in. It allows you to treat the top-level nodes in a nodeset as if they were rows in a table when combined with the TABLE() operator. Here's an example.
    First, to make the SQL look a little cleaner, I like to define a function like this:
    create or replace function testdoc return xmltype as
    begin
      return xmltype('<colors><color>Red</color><color>Green</color></colors>');
    end;.
    To break out the nodeset of <color> elements as a table, we use the following query:
    select value(list_of_color_elements).extract('*/text()').getStringVal() as color
    from TABLE( XMLSequence( extract(testdoc(),'/colors/color'))) list_of_color_elements.
    Or, using the new-in-9.2 extractValue() operator so we don't have to remember the text() part:
    select extractValue( value(list_of_color_elements), '.') as color
    from TABLE( XMLSequence( extract( testdoc() ,'/colors/color'))) list_of_color_elements.
    Here the TABLE(XMLSequence(...)) combo produces a table of XMLType, with one XMLType object in each row of the table.
    In general, if the XMLType instance were coming from an XMLType table xmltab the query would look like this:
    select extractValue( value(colors), '.') as color
    from xmltab x, /* Important that this table comes earlier in the FROM clause! */
         TABLE( XMLSequence( extract( value(x),'/colors/color'))) colors.
    And if the XMLType were instead in a column of XMLType named doc in a table xmltab, then we would have the syntax:
    select extractValue( value(colors), '.') as color
    from xmltab x, /* Important that this table comes earlier in the FROM clause! */
         TABLE( XMLSequence( extract( x.doc ,'/colors/color'))) colorsOnce you get the hang of it, you'll see that the combination of TABLE(XMLSequence()) to "shred" XML nodes into rows, and XMLAgg() to aggregate fragments of XML across multiple rows back into a single document, is quite powerful.

  • Is it possible to get the position of a charcter from a string ?

    Hi !
    Is it possible to get the position of a charcter from a string ?
    Example:
    @VAR contains the following text "ABCDEFGHIJKLM"
    I'am seaching for FGH, it start on pos. 6 en ends on pos 8.
    How can I get these numbers 6 and 8 ?
    So, I can use them in the MID(text,start,len) function.
    Thanks!

    Hi Sooraj,
    I'll explain more in detail:
    From a web-service I get a variable called @Spec.
    This variable contains the following:
    "MOTORTYPE[CR]D-QW1234[LF]PART[CR]1234-FRD-X[LF]"
    or
    "MOTORTYPE[CR]ABC[LF]PART[CR]E-435[LF]"
    I need the values behind MOTORTYPE[CR] and behind PART[CR]
    But you’ll see that the positions of these values are different each time.
    If there is a way to get the (start) position of "MOTORTYPE[CR]" or "PART[CR]" and the (end) position of the first "[LF]" behind that,
    then I could use the MID() function to get the correct values.
    The values will be displayed in a table view (between other fields).
    An ABAP-call/function won’t work . . . how should I invoke this within a table column/field object ? (system action ?)

Maybe you are looking for