Centering layer

How to center a layer for browser window, horizontally and vertically?

Vertical centering is not usually recommended. This demo would be OK for a business card or splash page only.
http://alt-web.com/TEMPLATES/vertical-center.html
Nancy O.
Alt-Web Design & Publishing
Web | Graphics | Print | Media  Specialists
http://alt-web.com/
http://twitter.com/altweb
http://alt-web.blogspot.com

Similar Messages

  • Simple (Uncomplicated) Layer Centering

    Hello...
    [sorry to do an adjacent post, but...]
    I have a site that I am in the process of developing; &
    the design concept i
    s a fairly simple one. I already know how to nest layers in a
    parent layer
    & center that parent layer...but I always wind up w/ a
    margin on the left &
    top of the parent (centered) layer (which...doesn't look
    right if there's an
    y type of backgrounding in the layer.)
    My concept is to have the parent layer sized to 779 X 386
    pxl's...so as to o
    pen fully in an 800 X 600 browser screen w/ no scroll
    bars...& then move to
    the center for all larger screen sizes (1024 X 768, etc.) No
    more...no less
    ..simple design...info & content stays centered in all
    cases, with no margi
    ns at the smaller res.
    Is there a way to do this in simple form...without all that
    P7 bloated layer
    centering fix hullabaloo?
    Thanks,
    mark4man

    > First, I made my doctype a strict one:
    As long as it's a valid and complete doctype it wouldn't
    matter if it were
    strict or loose.
    The rest of your 'solution' is just mumbo-jumbo, even
    containing errors.
    You cannot have two elements with the same ID (Layer1), for
    example.
    position:absolute; left:Xvalue px; top:Xvalue px;
    This is syntactically incorrect. "Xvalue px" is neither a
    legal value nor
    is your space between it an the unit a legal construction.
    > There's no z-index value for the parent div...but it all
    works.
    Doesn't matter - it will default to 1.
    > Also: Thanks Murray of ACE very much...didn't get around
    to trying your
    > code
    > this evening...may be better than mine, I don't know (in
    terms of better
    > cross-browser support & even overall functionality.)
    Try it. It's valid, and it works.
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.dreamweavermx-templates.com
    - Template Triage!
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    ==================
    "mark4man" <[email protected]> wrote in
    message
    news:[email protected]...
    >
    SOLVED...!!!
    >
    > I actually had a page constructed to work in the way I
    described, but the
    > parent layer was a bit skinny. When I found it, I
    reconstructed it as
    > follows:
    >
    > First, I made my doctype a strict one:
    >
    > <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
    > "
    http://www.w3.org/TR/html4/strict.dtd">
    >
    > Then...in the Head...below my keyword metadata...there
    is this:
    >
    > <style type="text/css">
    > body, html{
    > margin:0;
    > padding:0;
    > }
    >
    > [I believe this was the missing link for what I wanted
    to do...because
    > with
    > every page where I tried to center the parent layer,
    whereby I had the
    > stupid
    > margin on the left & top...it was missing.]
    >
    > Then the parent or container layer, with the nested
    layers, is as follows:
    >
    > <div id="Layer1" style="position:relative;
    width:779px; height:1120px;
    > margin:
    > 0 auto;">
    > <div id="Layer1" style="position:absolute;
    left:Xvalue px; top:Xvalue
    > px;
    > width:Xvalue px; height:Xvalue px; z-index:1"><img
    src="SomePhoto.jpg"
    > ></div>
    > <div id="Layer2" style="position:absolute;
    left:Xvalue px; top:Xvalue
    > px;
    > width:Xvalue px; height:Xvalue px; z-index:2"><img
    > src="SomeOtherPhoto.jpg"></div>
    > </div>
    >
    > There's no z-index value for the parent div...but it all
    works.
    >
    > Just wanted to put this out there for anyone else who
    may need it.
    >
    > Also: Thanks Murray of ACE very much...didn't get around
    to trying your
    > code
    > this evening...may be better than mine, I don't know (in
    terms of better
    > cross-browser support & even overall functionality.)
    >
    > To answer your question...I design like a old-fashioned
    graphics guy, like
    > I'm
    > doing paste-up...with overlapping content. Can't do that
    w/ tables.
    > [We've
    > had this discussion before, you & I.]
    >
    > Thanks again,
    >
    >
    mark4man
    >
    >

  • Centering a layer?

    How can I center a layer in a browser window using CSS?
    I have figured out that I can center the left edge of the
    layer by putting a value of 50% in the "L" section of the
    Properties menu.
    But I want to center the center of the layer!
    Is it legal (or possible) to give use code that reads
    center:50%;
    Help me see the light!
    thanks
    c

    Any absolutely positioned element takes its screen location
    from the
    location of its nearest positioned ancestor. So, if you can
    concoct a way
    to make the nearest positioned ancestor be centered, then
    you'll also center
    all layers that are descendents of that ancestor.
    Change this -
    </head>
    to this -
    <style type="text/css">
    <!--
    body { text-align:center; }
    #wrapper { text-align:left; width:760px; margin:0
    auto;position:relative; }
    /* 760px will display on an 800px screen maximized browser
    window without */
    /* horizontal scrollbars. */
    -->
    </style>
    </head>
    change this -
    <body ...>
    to this -
    <body ...>
    <div id="wrapper">
    and this -
    </body>
    to this -
    <!-- /wrapper -->
    </div>
    </body>
    and see if that helps.
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.dreamweavermx-templates.com
    - Template Triage!
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    ==================
    "GhengisJones" <[email protected]> wrote in
    message
    news:fa2icg$org$[email protected]..
    > How can I center a layer in a browser window using CSS?
    >
    > I have figured out that I can center the left edge of
    the layer by putting
    > a
    > value of 50% in the "L" section of the Properties menu.
    >
    > But I want to center the center of the layer!
    >
    > Is it legal (or possible) to give use code that reads
    >
    > center:50%;
    >
    > ????
    >
    > Help me see the light!
    >
    > thanks
    >
    > c
    >
    >

  • Every time I press the align-center button the layer moves a little more? never centers?

    This doesn't happen all the time, but it happens enough for me to ask. I don't even know what AE is aligning to sometimes. In this one comp, each time I click, the increments in which the layer moves become smaller and smaller, until they don't really move anymore, but are also clearly NOT centered anymore.
    anyone know? probably just missing something in terms of how AE processes alignment in the first place.
    thanks.

    The align feature will align two or more layers but it will not align relative to a comp. Complete info is in the help file.

  • Centering Image Horizontally within Div Layer

    I've placed an image inside a div layer. The div layer is 200 pixels wide by 200 pixels high. My image is 480 pixels x 720 pixels. So the layer is smaller than the image. How do I center the image horizontally within my div layer? I've applied a css rule on the layer as followed:
    #pictureframe {
    position:absolute;
    width:200px;
    height:200px;
    overflow: hidden;
    text-align: center;
    vertical-align: middle;
    display: inline-block;
    Because the image is larger than the div layer the image doesn't want to center horizontally. It seem to justify itself on the left side of the div layer even though I've applied a text-align: center on it. Any suggestions.

    Make your division at least as wide as your image.  Height of divisions should always be determined by content inside it.  If you impose a height limit on your division, increased content or text size will fail, causing content to be hidden.  If required to display a background-image, use the min-height property.
    APDivs as a primary layout method seldom works well. Here is why:
    http://apptools.com/examples/pagelayout101.php
    Also, APDivs cannot be centered as they are removed from the normal page flow. You might try wrapping an APDiv inside a relatively positioned parent container, but without seeing your page (entire code), it's impossible to say for sure if this will work for you.
    See Centering Pages, Images and other elements with CSS
    http://cookbooks.adobe.com/post_Centering_web_pages_and_other_elements_with_CSS-16640.html
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists
    http://alt-web.com/
    http://twitter.com/altweb

  • Server Load-balancing Across Two Data centers on Layer 3

    Hi,
    I have a customer who would like to load balance two Microsoft Exchange 2010 CAS Servers which are residing across two data centers.
    Which is the best solution for this? Cisco ACE or Cisco ACE GSS or both?

    I would go with source natting the clients ip addresses, so that return traffic from the servers is routed correctly.
    It saves you the trouble with maintaining PBR as well.
    Source NAT can be done on the ACE, by applying the configuration to either the load balancing policy, or adding the configuration to the class-map entries in the multi-match policy.
    Cheers,
    Søren
    Sent from Cisco Technical Support iPad App

  • Centering a pattern in layer effects CS5

    CS5.
    is there a way to centre a pattern sample in photoshop in layer effects?
    If I scale the pattern it doesnt seem to allow me to centre it, it just grows it left to write and as a top to bottom expansion
    Same issue with making a selection and filling it with a pattern.
    The only way to get a single copy of the pattern is to use EDIT/FILL, then crop it via selection.
    But I want to get a single sample of the pattern block via a layer effect fill.
    any ideas thankyou,

    With the dialog open just click and drag the Pattern on the canvas.

  • Layer centering

    hello, I built most of my site with layers, I have 1 or two
    tables but the rest of the flash and pictures are in layers. How
    can I center them? I centered them with the align - center, BUT
    when I open the html file on another computer its not centered. How
    can I resolve this problem?
    thanks

    You may also benefit from this page -
    http://www.great-web-sights.com/g_layerlaws.asp
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.dreamweavermx-templates.com
    - Template Triage!
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    ==================
    ": Nadia : ** Adobe Community Expert **"
    <[email protected]> wrote in message
    news:[email protected]...
    > This is a copy and paste from a reply I made yesterday
    to a very similar
    > question (a search of the forums would have given you
    the same results
    > :)
    >
    > You shouldn't be using 'layers' to create your page
    layout unless you know
    > exactly how 'layers' work.
    >
    > Before you go further with your page, you may want to
    take a look at this
    > article:
    http://apptools.com/examples/pagelayout101.php
    >
    > Anyway for your problem, you need to wrap your current
    content layers into
    > a
    > relatively positioned div that is centered, so that your
    other page
    > contents
    > sit relative to this wrapper.
    >
    > You'll need to get your hands dirty by going into the
    code :) Make sure
    > you
    > keep a backup of your original file and if this doesn't
    solve your
    > problem,
    > you will need to give us a link to the page you created.
    >
    >
    > Change this -
    >
    > </head>
    >
    > to this -
    >
    > <style type="text/css">
    > <!--
    > body {
    > text-align:center;
    > background-color: white; /*or whatever page bg color you
    want */
    > }
    >
    > #wrapper {
    > position:relative;
    > text-align:left;
    > width:760px;
    > margin:0 auto;
    > }
    > -->
    > </style>
    > </head>
    >
    > and then change-
    >
    > <body ...>
    >
    > to this -
    >
    > <body ...>
    > <div id="wrapper">
    >
    > and this -
    >
    > </body>
    >
    > to this -
    >
    > <!-- /wrapper -->
    > </div>
    > </body>
    >
    >
    > --
    > Nadia
    > Adobe® Community Expert : Dreamweaver
    > -------------------------------------------------
    > Tutorials |SEO |Templates
    >
    http://www.DreamweaverResources.com
    > -------------------------------------------------
    >
    http://www.perrelink.com.au
    > -------------------------------------------------
    >
    >
    >
    >
    > "beliy333" <[email protected]> wrote in
    message
    > news:[email protected]...
    >> hello, I built most of my site with layers, I have 1
    or two tables but
    >> the rest
    >> of the flash and pictures are in layers. How can I
    center them? I
    >> centered them
    >> with the align - center, BUT when I open the html
    file on another
    >> computer its
    >> not centered. How can I resolve this problem?
    >>
    >> thanks
    >>
    >
    >

  • I don't have a dual-layer drive, can I install Tiger or Leopard?

    Disclaimer: Apple does not necessarily endorse any suggestions, solutions, or third-party software products that may be mentioned in the topic below. Apple encourages you to first seek a solution at Apple Support. The following links are provided as is, with no guarantee of the effectiveness or reliability of the information. Apple does not guarantee that these links will be maintained or functional at any given time. Use the information below at your own discretion.
    Mac OS X 10.4 Tiger, and Mac OS X 10.5 Leopard come on what appear to be larger than 4.7 GB discs. This does not mean you need a dual layer drive to install them. Some Macs capable of installing Tiger or Leopard came with a built-in CD-RW, or CD-ROM drive. For those a compatible Firewire DVD drive for booting Mac OS X can work instead of replacing the internal drive. Tiger also came in a limited edition Media Exchange Program CD installer package, which you may be able to find in the open market. The limitation for each is dependant on other hardware:
    1. If your Mac shipped new with no Firewire, you may be able to install Tiger a special third party addon software known as XPostFacto.
    2. If your Mac shipped new with less than 867 Mhz built-in processor (including dual processor 800 MHz or less), you may be able to install Leopard with a special third party addon software known as Leopard Assist.
    3. If your Mac shipped with a processor upgrade card installed, and #2 is true, a firmware update may be available from the processor upgrade card vendor that allows Leopard's installation.
    4. Tiger needs at least 256 MB of RAM.
    Leopard needs at least 512 MB of RAM.
    If you have a lot of dashboard widgets, you may need to increase RAM to improve performance on either operating system. The RAM needs to follow Apple's specs to ensure smooth operation. Only get RAM with a lifetime warranty.
    5. Officially you need for Tiger:
    "At least 3 GB of free disk space; 4 GB if you install the XCode 2 Developer Tools" from: http://support.apple.com/kb/HT1514
    And officially for Leopard you need:
    "9 GB of available disk space or more" from http://support.apple.com/kb/HT3759
    However, I would add to that if your hard drive doesn't have at least 15% of the drive free in addition to that, you may experience significant slowing down in the operating system function. This number has been arbitrarily discovered by many users.
    6. When installing Tiger or Leopard, if your machine shipped with Panther (10.3) or earlier, be sure to get the retail Tiger or retail Leopard.
    The Tiger installer is a san serif gray and white X with a spotlight on the center of the X on a black background.
    The Leopard installer is a san serif black and gray X on a pink galaxy centered on a black background.
    This is the 1st version of this tip. It was submitted on Dec 23, 2009 by a brody.
    Do you want to provide feedback on this User Contributed Tip or contribute your own? If you have achieved Level 2 status, visit the User Tips Library Contributions forum for more information.

    Disclaimer: Apple does not necessarily endorse any suggestions, solutions, or third-party software products that may be mentioned in the topic below. Apple encourages you to first seek a solution at Apple Support. The following links are provided as is, with no guarantee of the effectiveness or reliability of the information. Apple does not guarantee that these links will be maintained or functional at any given time. Use the information below at your own discretion.
    Mac OS X 10.4 Tiger, and Mac OS X 10.5 Leopard come on what appear to be larger than 4.7 GB discs. This does not mean you need a dual layer drive to install them. Some Macs capable of installing Tiger or Leopard came with a built-in CD-RW, or CD-ROM drive. For those a compatible Firewire DVD drive for booting Mac OS X can work instead of replacing the internal drive. Tiger also came in a limited edition Media Exchange Program CD installer package, which you may be able to find in the open market. The limitation for each is dependant on other hardware:
    1. If your Mac shipped new with no Firewire, you may be able to install Tiger a special third party addon software known as XPostFacto.
    2. If your Mac shipped new with less than 867 Mhz built-in processor (including dual processor 800 MHz or less), you may be able to install Leopard with a special third party addon software known as Leopard Assist.
    3. If your Mac shipped with a processor upgrade card installed, and #2 is true, a firmware update may be available from the processor upgrade card vendor that allows Leopard's installation.
    4. Tiger needs at least 256 MB of RAM.
    Leopard needs at least 512 MB of RAM.
    If you have a lot of dashboard widgets, you may need to increase RAM to improve performance on either operating system. The RAM needs to follow Apple's specs to ensure smooth operation. Only get RAM with a lifetime warranty.
    5. Officially you need for Tiger:
    "At least 3 GB of free disk space; 4 GB if you install the XCode 2 Developer Tools" from: http://support.apple.com/kb/HT1514
    And officially for Leopard you need:
    "9 GB of available disk space or more" from http://support.apple.com/kb/HT3759
    However, I would add to that if your hard drive doesn't have at least 15% of the drive free in addition to that, you may experience significant slowing down in the operating system function. This number has been arbitrarily discovered by many users.
    6. When installing Tiger or Leopard, if your machine shipped with Panther (10.3) or earlier, be sure to get the retail Tiger or retail Leopard.
    The Tiger installer is a san serif gray and white X with a spotlight on the center of the X on a black background.
    The Leopard installer is a san serif black and gray X on a pink galaxy centered on a black background.
    This is the 1st version of this tip. It was submitted on Dec 23, 2009 by a brody.
    Do you want to provide feedback on this User Contributed Tip or contribute your own? If you have achieved Level 2 status, visit the User Tips Library Contributions forum for more information.

  • Issue with Dragging a 3D Layer

    There seem to at least three ways to get an external 3D model into a document:
    1. Open the model file itself.
    2. New Layer from 3D File.
    3. Drag a 3D layer from another document.
    The third way has a problem associated with it that doesn't seem to be documented:  Unlike the first two, when you do this one, the results depend on where you release the mouse cursor.  The worst part is that unless you happened to drop it at the center of the document, you can get some very non-intuitive behavior:
    When you zoom the camera in the Camera Tool (N), the center of the image does not stay fixed as it does with a real camera.  This leads to real problems in positioning the camera to get the view you want.
    The orthogonal camera views (Left, Top, etc.) normally adjust to show the image centered in the view.  They do not in this case.  The Top view, for example, shows the red and green axes as crossing somewhere besides the center and perhaps even not inside the view.  The model is not centered.
    For a given camera elevation and azimuth, you should be able to calculate where to place the camera and how to rotate it so that it points at, say, the origin.  If you do this correctly, it will work in the first two cases, but not the third.
    It can be a gotcha.  The documentation Combine 3D objects (Photoshop Extended) has explict directions for the steps you should take but does not mention this effect.  The effect is especially apparent and non-intuitive when the camera is near or in the model, and as it would turn out, that was the situation in my first real project with Photoshop 3D.  It took me a long time (weeks) to figure out what was happening, and I still have some remaining lack of understanding.
    In case you don't want to read further, let me say that you can avoid this problem by using Shift-drag or Layer | Duplicate Layer.  Both of these center the 3D object in the layer, and the camera works as you would expect a 3D camera to work.  (The documentation should say this rather than what it does say.)
    It doesn't seem to be a bug, and the implementation is probably logical, but it needs to be documented.  I am not sure of the best way to help this happen.  Perhaps someone can suggest the most effective way to go about it.
    This is what I have learned the hard way.
    It works just the same as dropping an image on a layer.  You can use the Move Tool (V) to move the image around and can use Free Transform (Ctrl-T or Command-T) to move, resize, or distort it.  In addition, Free Transform will show you the numeric values of where the image is located, how it is sized, etc.  This is true of other Photoshop objects in a layer as well, not just images.
    It is, in fact, apparently using the same mechanism as it does for all objects.  The problem is that this is a 2D concept and doesn't play well with the 3D object.  For a 3D object by itself, what you see is determined by the camera and model positions.
    These, in fact, stay with the 3D object in the layer as you move it around.  However, the camera is aimed relative to the 3D object whereas what you see is a combination of this and the location of the 3D object in the 2D layer of the document.  For example if your 3D object is moved to the lower right of the document, then all of the Top, Left, Front, etc. views will show it in the lower right.  This is probably not what you would expect, at first anyway.
    The numeric values of the location of  an object in a layer are given in pixels.  The locations of things in the model inside the 3D object are in terms of its dimensions (inches, meters, etc.) even though the units are not necessarily known).
    I do not yet know what algorithm Photoshop uses to determine the end result of what you see.  They don't even document their 3D coordinate system, much less this.  I have been able to determine fairly well what the coordinate system must be, but I haven't figured out how it gets mixed in with the location in the 2D layer.
    I also have not yet figured out how to get the numeric values for where the object is located in the layer.  The free transform values always indicate it is the same size as the layer and centered.  It will always render to fill the document window, in any event.  If someone knows how to get the numeric values, I would appreciate the information.  It is necessary if you want to do accurate placement as for an engineering or architectural model.
    An upside is that this can be a powerful feature if you learn to control it.  I am reasonably sure you can get views of your model that are not possible using the 3D camera and object tools alone.  I think this because I spent a lot of time trying to position an object in a tutorial so it looked like the example given.  I was not able to do this with the camera controls alone and was only successful after moving the layer, once I learned the above.
    Thanks in advance for any further insight into this issue.

    I ran into this to...it has to do with the way the player
    handles the 3D transform. The workaround I used was to take a
    snapshot of the object you are rotating using BitmapData, make your
    actual object invisible, rotate the temp bitmap, and then at the
    end of the rotation remove the temp object and make your actual
    object visible again.

  • How do I automatically scale a layer to fit a canvas while maintaining the original aspect ratio?

    I'm currently tasked with reformatting 3,000 product images (thumbnail, normal, and large sizes for each) for a new online store. To do that, I'm trying to create a Photoshop (CS6) action that can automate the process as much as possible because I have a hard deadline and not a lot of time to get it all done. Where I'm running into issues is scaling the images automatically once I've used File-->Place. My canvas sizes are all square (670px X 670px, 250px X 250px, and 125px X 125px), but the product images I'm placing on the canvases are almost always rectangular with the height greater than the width at about a 2:3 ratio. I need to scale them so that the image is touching the top and bottom edges of the canvas and the width is adjusted accordingly with the image centered horizontally.
    I found the program below on another thread, but it's not working exactly like I need it to. It mentions "maintain aspect ratio," but when I run it, the image I'm trying to place ends up getting stretched to fill the entire canvas rather than the width adjusting to the height once the height has reached its maximum. I have no experience with JavaScript, so I'm having a difficult time adjusting the code to meet my needs. Any help would be greatly appreciated since I am a writer who is WAY out of his comfort zone.
    var maintainAspectRatio;// set to true to keep aspect ratio 
    if(app.documents.length>0){ 
        app.activeDocument.suspendHistory ('Fit Layer to Canvas', 'FitLayerToCanvas('+maintainAspectRatio+')'); 
    function FitLayerToCanvas( keepAspect ){// keepAspect:Boolean - optional. Default to false 
        var doc = app.activeDocument; 
        var layer = doc.activeLayer; 
        // do nothing if layer is background or locked 
        if(layer.isBackgroundLayer || layer.allLocked || layer.pixelsLocked 
                                || layer.positionLocked || layer.transparentPixelsLocked ) return; 
        // do nothing if layer is not normal artLayer or Smart Object 
        if( layer.kind != LayerKind.NORMAL && layer.kind != LayerKind.SMARTOBJECT) return; 
        // store the ruler 
        var defaultRulerUnits = app.preferences.rulerUnits; 
        app.preferences.rulerUnits = Units.PIXELS; 
        var width = doc.width.as('px'); 
        var height =doc.height.as('px'); 
        var bounds = app.activeDocument.activeLayer.bounds; 
        var layerWidth = bounds[2].as('px')-bounds[0].as('px'); 
        var layerHeight = bounds[3].as('px')-bounds[1].as('px'); 
        // move the layer so top left corner matches canvas top left corner 
        layer.translate(new UnitValue(0-layer.bounds[0].as('px'),'px'), new UnitValue(0-layer.bounds[1].as('px'),'px')); 
        if( !keepAspect ){ 
            // scale the layer to match canvas 
            layer.resize( (width/layerWidth)*100,(height/layerHeight)*100,AnchorPosition.TOPLEFT); 
        }else{ 
            var layerRatio = layerWidth / layerHeight; 
            var newWidth = width; 
            var newHeight = ((1.0 * width) / layerRatio); 
            if (newHeight >= height) { 
                newWidth = layerRatio * height; 
                newHeight = height; 
            var resizePercent = newWidth/layerWidth*100; 
            app.activeDocument.activeLayer.resize(resizePercent,resizePercent,AnchorPosition.TOPLEFT); 
        // restore the ruler 
        app.preferences.rulerUnits = defaultRulerUnits; 

    Hum Im not sure Im getting you here… Have you looked at Image Processor…?
    Why are you NOT just using Fit Image and canvas size in your actions…?
    These are all built-in to Photoshop.
    If you wanted to do all 3 sizes in the 1 fly-bye then use script to process…
    If you need extra file naming conventions then script would probably be best…
    All of the above should have NO trouble handling your 3k files…

  • Need suggestion for ISE distributed deployment model in two different data centers along with public certificate for HTTPS

    Hi Experts,
    I am bit confused about ISE distributed deployment model .
    I have two data centers one is DC & other one is as a DR I have  requirement of guest access service implementation using CWA and get public certificate for HTTPS to avoid certificate error on client devices :
    how do i deploy ISE persona for HA in this two data centers
    After reading cisco doc , understood that we can have two PAN ( Primary in DC  & Secondary in DR ) like wise for MnT (Monitoring will be as same as PAN ) however I can have 5 PSN running in secondary i.e. in DR ISE however I have confusion about HA for PSN .. since we have all PSN in secondary , it would not work for HA if it fails
    Can anybody suggest me the best deployment solution for this scenario ?
    Another doubt about public certificate :
     Public Certificate: The ISE domain must be a registered or part of a registered domain name on the Internet. for that I need Domain name being used from customer .
    Please do correct me if I am wrong about certificate understanding :
    since Guest will be the outside users , we can not use certificate from internal CA , we need to get the certificate from service provider and install the same in both the ISE servers
    Can anybody explain the procedure to opt the public certificate for HTTPS from service provider ? And how do i install it in both the ISE servers ?

    Hi there. Let me try answering your questions:
    PSN HA: The PSNs are not configured as "primary" or "secondary" inside your ISE deployment. They are just PSN nodes as far as ISE is concerned. Instead, inside your NADs (In your case WLCs) you can specify which PSN is primary, which one is secondary, etc. You can accomplish this by:
    1. Defining all PSN nodes as AAA radius servers inside the WLC
    2. Then under the SSID > AAA Servers Tab, you can list the AAA servers in the order that you prefer. As a result, the WLC will always use the first server listed until that server fails/gets reloaded, etc. 
    3. As a result, you can have one WLC or SSID prefer PSN server A (located in primary DC) while a second WLC or SSID prefer PSN server B (located in backup DC)
    Last but not the least, you could also place PSNs behind a load balancer and that way the traffic would be equally distributed between multiple PSNs. However, the PSN nodes must be Layer 2 adjacent, which is probably not the case if they are located in two different Data Centers
    Certificates: Yes, you would want to get a public certificate to service the guest portal. Getting a public/well known certificate would ensure that most devices out there would trust the CA that signed your ISE certificate. For instance, VeriSign, GoDaddy, Entrust are some of the ones out there that would work just fine. On the other hand, if you use a certificate that was signed by your internal CA, then things would be fine for your internal endpoints that trust your internal CA but for any outsiders (Guests, contractors, etc) that do not trust and do not know who your internal CA is would get a certificate error when being redirected to the ISE guest portal. This in general is only a "cosmetic" issue and if the users click "continue" and add your CA as a trusted authority, the guest page would load and the session would work. However, most users out there would not feel safe to proceed and you will most likely get a lot of calls to your helpdesk :)
    I hope this helps!
    Thank you for rating helpful posts!

  • How to center a layer ?

    Hello friends.. I have created a pop up menu with a tool that
    creates de code in Javascript. The I have setted it on a layer (if
    I do not do it, the code displays in a different line of the
    screen) .Well, it works, but the problem now is when I see the web
    site on a wider screen... the layers and its content do not move,
    but the rest of the page does, because it is all centered... the
    result is a mess with the layers.... I have been trying to create a
    table and attach the layer to it (to one of its cells) but seems
    there is no way to do it.... what should I do ? please help ! thanx
    a lot

    Why, right here!
    Change this -
    </head>
    to this -
    <style type="text/css">
    <!--
    body { text-align:center; }
    #wrapper { text-align:left; width:760px; margin:0
    auto;position:relative; }
    /* 760px will display on an 800px screen maximized browser
    window without */
    /* horizontal scrollbars. */
    -->
    </style>
    </head>
    change this -
    <body ...>
    to this -
    <body ...>
    <div id="wrapper">
    and this -
    </body>
    to this -
    <!-- /wrapper -->
    </div>
    </body>
    and see if that helps.
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.dreamweavermx-templates.com
    - Template Triage!
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    ==================
    "Sw Jiten" <[email protected]> wrote in
    message
    news:emiq0u$adp$[email protected]..
    > hello Murray... I certainly like your well known short
    answers... except
    > this time.... I did not understand... where was it
    answered ?? thanx in
    > advance...

  • How to attach a layer to a table ?

    Hello friends.. I have created a pop up menu with a tool that
    creates de code in Javascript. The I have setted it on a layer (if
    I do not do it, the code displays in a different line of the
    screen) .Well, it works, but the problem now is when I see the web
    site on a wider screen... the layers and its content do not move,
    but the rest of the page does, because it is all centered... the
    result is a mess with the layers.... I have been trying to create a
    table and attach the layer to it (to one of its cells) but seems
    there is no way to do it.... what should I do ? please help ! thanx
    a lot

    Sw Jiten wrote:
    > Hello friends.. I have created a pop up menu with a tool
    that creates de code
    > in Javascript. The I have setted it on a layer (if I do
    not do it, the code
    > displays in a different line of the screen) .Well, it
    works, but the problem
    > now is when I see the web site on a wider screen... the
    layers and its content
    > do not move, but the rest of the page does, because it
    is all centered... the
    > result is a mess with the layers.... I have been trying
    to create a table and
    > attach the layer to it (to one of its cells) but seems
    there is no way to do
    > it.... what should I do ? please help ! thanx a lot
    >
    You need to wrap your main table in a <div> and give it
    a position of
    relative, as below.
    <div style="position: relative; width: 650px; margin: 0
    auto;">
    <table width="650" cellpadding="0" cellspacing="0"
    border="0">
    <tr>
    <td>Content</td>
    </tr>
    </table>
    </div><!--end wrapper -->
    Make the <div> width as wide as the table. In the case
    above its 650px.
    Then you need to move all your layers code to within the
    <div>, as below.
    <div style="position: relative; width: 650px; margin: 0
    auto;">
    <!-- MOVE YOUr LAYERS CODE TO HERE -->
    <table width="650" cellpadding="0" cellspacing="0"
    border="0">
    The layers will now take their top/left co-ordinates from the
    top/left
    of the 'wrapper' <div>
    If you do this correctly as the table moves, when the browser
    window is
    widened/narrowed, the layers will move also, as one single
    unit.

  • How to scale objects in a layer while keeping each object in the same position

    I have a map with symbols on it, placed precisely where they need to be. Is there a way to scale all of the objects in a layer or group so that they are larger, but without treating them as a layer that is stretched out to scale proportionately? Basically, how could I make each symbol larger as though each is being scaled from their centers?
    I've tried to select a layer so that each object is selected, then transforming them (specifiying a scale percentage). As a result, the objects are enlarged, but this produces the same results as a normal click and drag from the corner registration point. Any ideas?

    Yes, o.k., sort of. But you are not allowed to select individual objects that are parts of a group or groups. It's also quite all right to select, say, Same Fill Colour and Transform Each will work as long as the selection does not contain parts of groups.
    To my way of thinking it would be better if it worked the other way, with anything selected with the Direct Selection tool, because sometimes you want to transform things even though they are parts of groups. But that's just the way the Illy cookie crumbles.

Maybe you are looking for

  • IPhone 4S issues with wi-fi and iMessage & Apple support

    Against my better judgement and experience I bought an Apple iPhone 4S when it was released.  I should have remembered the extensive pain I experienced with Apple's so-called "support" when I had iPod/iTunes issues but I bought into the promise and t

  • Error when creating tweens and masks

    Hi Guys, i seem to be having a porblem with any sort of tweens, motion (classsic) and shape. when i create a new motion tween for example, i get the yellow "!" error in properties and it says "Motion tweening will not occur on layers with ungrouped s

  • Read Only Fields

    When a read only field is in a user role and the field is removed, the read only flag disappears. How can controls be implemented so that a role can not be added back in and the read only doesn't follow. It is important to have some fields read only

  • Inter-Cluster "Locations" Calculations

    We have three CUCM 8.5 clusters globally, connected via an MPLS network. The North American cluster has a SIP trunk to Polycom DMA- both the North American CUCM cluster and Polycom DMA cluster is within the same data center. I have a SIP trunk betwee

  • How can you remove redundant T&E messages in notes?

    Hi all, I would like to know how you can remove redundant T&E messages in notes? I have two messages that constantly appear when i want to approve expenses: 1) "check expense report trip no..." 2) "workitem: check if expense claim no... can be approv