Find dpi & Align center of the Image

Hi all

I have new request, but struggling in the points below:

1. find less than 300 dpi image in the active document

2. create the text block and set the center of the image vertically and horizotally.

Hope that I finished the script of 90%

Finished the Script:

var myGraphics = app.activeDocument.allGraphics;
var targetResolution = 300;
 for (var i = 0; i < myGraphics.length; i++) {
    try
    {
    if (myGraphics[i].effectivePpi[0] < 300) {
        var myPPI = myGraphics[i].effectivePpi[0] + " dpi"             //please ensure this line should be correct
        var myName = myGraphics[i].itemLink.name;
        var myPage = myGraphics[i].parentPage;

        var myCaption = myPage.textFrames.add();
        myCaption.textFramePreferences.verticalJustification = VerticalJustification.TOP_ALIGN;
        myCaption.contents = "FPO\r" + myName + "\r" + "Low Res " + myPPI;

        var bnds = myGraphics[i].parent.visibleBounds;
        myCaption.visibleBounds = [bnds[2] + 3, bnds[1], bnds[2] + 6, bnds[3]];

        myCaption.fit(FitOptions.FRAME_TO_CONTENT);

        try {
            var myPStyle = app.activeDocument.paragraphStyles.add({name: "Caption_lowres", justification: Justification.CENTER_ALIGN});

        } catch (myError) {
              myCaption.parentStory.appliedParagraphStyle = app.activeDocument.paragraphStyles.item("Caption_lowres");
           }
        myPage.groups.add([myCaption, myGraphics[i].parent]);
    };
}
catch(myError)
{
    }
};

POWER REQUIRED

output.png

But using the current above script output

current output.png

Thank you

Beginner_X

Hi all

I found the answers in a different way...

Thanks to the forum and Mr.Dave

var myGraphics = app.activeDocument.allGraphics;
for (var i = 0; i < myGraphics.length; i++) {
        var myPage = myGraphics[i].parentPage;
        var myCaption = myPage.textFrames.add();
        var bnds = myGraphics[i].parent.visibleBounds;
        myCaption.visibleBounds = [bnds[2] + 3, bnds[1], bnds[2] + 6, bnds[3]];
        myCaption.contents = "FPO\r";
        myCaption.fit(FitOptions.FRAME_TO_CONTENT);

        app.select([myCaption, myGraphics[i].parent])
        app.activeDocument.align(app.activeDocument.selection, AlignOptions.TOP_EDGES, AlignDistributeBounds.ITEM_BOUNDS);
        app.activeDocument.align(app.activeDocument.selection,AlignOptions.VERTICAL_CENTERS, AlignDistributeBounds.ITEM_BOUNDS);

        var myPageGroup = myPage.groups.add([myCaption, myGraphics[i].parent]);
     };

Thank you Forum

Beginner

Tags: InDesign

Similar Questions

  • Cut a circle from the center of the image?

    Hi all. I am a noob to photoshop but am learning fast. I'll have a little to hurt something I imagine most of you is quite straightforward. Help, please

    Basically, I have a square image (3000px x 3000px) and I want to cut an exact circle from the center of the image. So I choose the Ellipitcal selection marquee tool and put my cursor around in the center of the image, hold down the SHIFT and ALT, and then drag to the size of the desired circle. Then I press V to bring up the alignment toolbar hoping I could Center the selection to the exact middle of the image, but I can't. PS won't let me select alignment buttons. Please can someone tell me where I'm wrong?

    After that, I want to take the image of CUT and paste as a new picture, while I have just the circle and its content and no rectangular background. I don't know STICKING will do, but I can't get that much.

    Help, please

    Thanks in advance.

    One option:

    Elliptical selection tool

    Select > transform selection - enter the coordinates of the Center reference point the median point of the canvas.

    Make your cut or whatever.

    I am appalled by these fields coordinated not allowing a percentage (of a size of canvas) or simple to provide arithmetic expression. This seems like a basic functionality of conviviality that should have been years ago. Am I missing something?

  • Text of Center with the image next to it.

    I want to have a centered text and just to his left a picture which is an icon.

    I'm sure that's a very basic question, but while I can understand a few methods which almost achieve this, im not sure of the right way to do it.

    Can I Center the text with text-align: center, but this is not applied to the image.

    I can make the text in a div with padding on the left equal to the width of the image, and then set the image as a background image that appears on the left. I can then use margin: auto to center the div, but only if I specify a width for the div If I do this, then the text is not exactly centered on the page. If I do the fairly large div and add text-align: center, then the text is centered, but the image is not always in the right place.

    Is there a solution?

    Thank you

    Hello

    Yes, the solution was obvious, and it was only when I was witting that I realized that I had been focused on centering the text with an image to the left and not with an image just to the left of the text, sorry my mistake!

    What I usually do to allow resizing of the text is to allow for a value up to 150% of my setting specified in the design police (not always possible, but I'm trying!), and anything above that allow the text overflow-spaces for this: nowrap; a rule that I had in the #header css rule.

    PZ

  • How to set the text to the center of the image and keep it responsive

    Hi, I'm new in Muse so Hello everyone

    I created a large image and add the text object that I placed in the Center. I have setup the image and width sensitive.

    Keep what reduction in size of the sensitive image browser, but the text is now high position relative to the browser.

    My question is how do you tell the text object to hold the center of the image? (As rather pin to pin object browser)

    Thank you

    I found this one:

    Text the PIN in the center of the image when using fluid width

    He answered my question but not yet a reasonable solution. Muse should allow us to group objects even with width and high sensitive. Another way is to allow pin object to.

  • My tools do not work in the center of the image

    My tools, spot healing, radial, grad and brush do not work in the center of the image. Near the edges, I see them as I propose in the Center, they disappear.

    It's in Lightroom cc cannot begin to understand why, not so no idea how to solve this problem. All ideas

    Yosemite with a Macbook pro not retina

    Began to make any reply. I closed Lightroom and reopened. Seems to have solved the weird though problem?

  • Remove the play button in the center of the image

    Hello

    Excuse me for my English, English French by Bing translation.

    Captivate 5.5

    I created a project:

    Playback bar: I changed the colors.

    Project > Preferences: not AutoPlay, but I put an image.

    Beginning and end > stop.

    When you run the project, there is a "play" button in the center of the image. Is it possible to delete or hide this button and start to read only the button of the PlayBar?

    If necessary I would put screenshots

    Thank you very much for your answers.

    Hello to all and good night to the time difference
    Thank you for your answers and I examined my project.
    Captiv8r made me think to click on areas. I have inserted a visible click box, and then select pause. She is more beautiful with the image, but the main thing is the demonstration in which the first slide has 4 click boxes that refer to the chapters.
    Why make it complicated it was simple, I'm
    Captivate is a great tool, but I am a beginner.
    I consider that my topic as solved.
  • PES 9 - unique printing center of the image

    Hi - I'm having a problem with printing some JPEGs in PSE 9.  I actually try to use a virtual "printer" pdf to convert a jpeg file to the pdf format (I'm trying to finally merge multiple JPEG files in a final pdf file if I want to convert JPEG files and use a third-party software to perform the merge).  The jpeg format, I am trying to convert is larger (size wise) so I resized it so that it develops on a normal paper.  However, when I go to 'print', only the center of the image is printed, despite the fact that the preview seems perfect and "Crop to fit" is not checked.  Any ideas?  Thank you!

    Specify the correct paper size in the print dialog box?  Otherwise, I don't know about the problem of sizing.

    You don't have to print to a virtual printer to get a .pdf file.  You can use Save as... and select PDF.

    Jürgen

  • Why is code to get the center of the image does not?

    Hey there. I'm trying to set up the center of the imags that load so that I can put them in the center of the stage. I do this each image is a different size.

    Here is the code that I learned to work before, but its doesn't now and I've been searching for what I've done wrong with no luck. : (

    Would watch you over and maybe you'll see what I'm doing wrong?

    public function placePicture(e:Event = null):void {
         rawImage = imageData.image[imgNum].imageURL;
         lastImageIndex = imageData.*.length() - 1;
                        
         imageLoader = new Loader;
         imageHolder = new Sprite;
         imageLoader.load(new URLRequest(rawImage));
                                  
         imageLoader.x -= imageLoader.width/2; //this should set the image to the center no?
         imageLoader.y -= imageLoader.height/2;
         imageHolder.x = 640; //this is the center of the stage
         imageHolder.y = 100;
         imageHolder.addChild(imageLoader);
         masterHolder.addChild(imageHolder);     
    }
    

    The result when I publish is the image comes on stage, but the upper left corner goes to 640 instead of the center of the image to 640.

    I tried several variations of this all with the same result:

    imageLoader.x = - 1 * imageLoader.width / 2;

    I tried to use setRegistrationPoint with the following tutorial: http://flashscript.ca/set-registration-as3.php

    and I tried to do all this by inserting the charger in a sprite and then in applying the code to the sprite and then adding only another sprite sprite and put to 640 and inserting is not in another sprite and trying to right set up the existing 640 sprite (I hope that all the senses). And I tried to put width/3 and nothing else happens.

    If you have other ideas or you can see what I am doing wrong I would be really gratefull for some tips! : )

    Thanks for any help!

    Oh, and I'm getting no errors on it.

    width and height of the image are not available until the loading is complete.  That is to say, use a Headphone/Earphone full function.

  • Action/Script Photoshop to place the vertical line at the center of the Image

    How to create an action (or a script) in Photoshop that creates a vertical line in the center of the page?

    Here is an example of what I'm looking for.

    001-002.jpg

    First go to view > rulers, then right-click on the rule, and the percent change units.

    (so the action registers per cent and will work on different size documents)

    Then drag a vertical guide at the Center, drag one to the top of the image and the other down.

    (the goal is so the online tool is aligned with the top and down and you know where is the center of the document)

    For action, you can use the online tool and just save lines from the top of the image down along the center guide.

  • Text the PIN in the center of the image when using fluid width

    Dear fellow users Adobe Muse,

    I have a some problems pasting blocks of text for the picture frames when you use layout fluid width.

    What I want is to have three images side by side and a text centered on each photo.

    When my browser window resizing pictures fit perfectly, but the text does not follow.

    I tried to classify, but it does not help.


    Is it possible to lock text block so that it is always at the center of an image?


    See the images under (the first showing what I'm after and the other showing what it looks like when resizing)

    1.jpg

    2.jpg

    Try the workaround mentioned in this post: Re: text on reactive image?

    Best,

    Anna

  • Dehaze adding circle colored in the center of the image?

    I've noticed when I use the dehaze feature in Lightroom, a circle appears at the center of my images.  See http://i.imgur.com/N30T25c.jpg and last 400 420 24 MQ - YouTube 1080 p h264. In the sound image clearly visible in the video, you must wait until the end and really look for. I can't say if the dehaze function exaggerates everything that already exists or if it is in fact the introduction this circle. Can anyone chime in with what they think? The camera I use is a Sony RX100M4.

    The shot of the wall has rings without the dehaze treatment. It is easily highlighted with a huge boost in the curve of contrast and tone.

  • Auto align layers of the image

    You are looking for an alternative to Photoshop CS3 (because it is no longer available for me) and hoping to emigrate to photoshop elements.

    Running a test print but find a feature I use a lot that seems to be missing... or at least severely restricted as far as I can understand.

    I want to be able to auto align different (although visually similar) images in several layers in a single document so that each layer can be hidden/edited individually.

    Pretty basic editing things, but (guided) photomerge options all seem to want to complete the merge for you.

    I don't - I want just the layers oriented so that I can edit each layer manually myself.

    Is there a way to do this?

    LazyCarrot wrote:

    You are looking for an alternative to Photoshop CS3 (because it is no longer available for me) and hoping to emigrate to photoshop elements.

    Running a test print but find a feature I use a lot that seems to be missing... or at least severely restricted as far as I can understand.

    I want to be able to auto align different (although visually similar) images in several layers in a single document so that each layer can be hidden/edited individually.

    Pretty basic editing things, but (guided) photomerge options all seem to want to complete the merge for you.

    I don't - I want just the layers oriented so that I can edit each layer manually myself.

    I don't know exactly how the different your project comes from a fusion of standard panorama.

    When Photomerge process ends with elements, you can switch to "expert".

    I would ignore the merged layer obtained by hide it or delete it.

    Now you have the usual layers aligned by default, which might not be exactly what you want.

    You can play with the alignment of layers or masks to customize your results.

    Once you want to save the result, you can select the top layer and do the usual shortcut Ctrl Alt Shift E allows you to merge the result in a single layer.

  • Cannot find Windows Media Center in the list of programs under windows 7 Professional

    I can't find the windows media centre in my system windows 7 Professional.

    I've tried going to Start, programs I have Media Player and a creation of dvd and other.

    I also used the search tool.

    I tried upgrading my original installation disk. It is a disaster which took several days to recover from.

    I tried teak support but my product key has expired.

    It can be installed but turned off. To activate it:

    1. click on Start Orb (lower-left) and then Control Panel.

    2. click on programs and features.

    3. on the left side of the screen, click on 'Windows turn features on or off".

    4. look for the entry called multimedia & and expland the sign +.

    5. put a check mark in the check box for Windows Media Center.

    5. click on OK.

    I hope that your Windows Media Center should now appear.

    All the answers and suggestions are provided by an enthusiastic amateur and are therefore no explicit or implicit guarantee. Basically, you use my suggestions at your own risk.

  • determine the center of the 2D image

    I want to know how to determine the center of a 2Dpicture

    in my vi, I want the departure of pen to draw line from the center of the image

    any help please?

    Hi iman.

    as you know the size of your image, it should be easy to calc the focal point:

    center_x =(x_max+x_min)/2

    center_y =(y_max+y_min)/2

  • New CSS Rollovers aligns not even like Image Rollovers - Dreamweaver CC

    I've set up a test page replacing Javascript Image rollover CSS Image Rollovers and the alignment of the elements in the 3 columns (DIVS) is not the same as when reversals of old style. I can't find the error in my CSS and I would like another pair of eyes to see if I'm missing something. Here is the screenshot of the new Firefox page, followed by the CSS. Load images in #sidebar1 (left column), #sidebar2 (right column) and #MainContent. #MainContent appears off centered and #sidebar off margins are different. Any help would be greatly appreciated.

    Screen Shot 2015-03-11 at 12.18.52 PM.png

    CSS:

    < style type = "text/css" >

    <!--

    {body

    fonts: 81.3% Verdana, Arial, Helvetica, without serif.

    Background: #666666;

    margin: 0; / * It is advisable to zero, the margin and the filling of the body to hold element has a different default browser * /.

    padding: 0;

    text-align: center; / * This centers the container in IE 5 * browsers. The text is then set left aligned by default in the #container selector * /.

    Color: #000000;

    }

    .oneColFixCtrHdr #container {}

    Width: 780px;  / * using the less than a width 20px full 800px allows for chrome browser and avoids a horizontal scroll bar * /.

    background: #FFFFFF;

    margin: 0 auto; / * margins (in conjunction with a width) auto Center the page * /.

    border: 1px solid #000000;

    text-align: left; / * This setting overrides the text-align: center on the body element. */

    }

    .oneColFixCtrHdr #header {}

    background: #DDDDDD;

    padding: 0;  / * This filling is the alignment to the left of the items in the div that appear below. If an image is used in the #header instead of text, you can remove the padding. */

    }

    .oneColFixCtrHdr #header h1 {}

    margin: 0; / * zero setting of the margin of the last element in the #header div tag will prevent the collapse of margin - inexplicable space between divs. If the div has a border around it, this isn't necessary, which also allows to avoid the collapse of margin * /.

    padding: 10px 0; / * padding instead of margin will allow you to keep the edges of the div element * /.

    }

    {.oneColFixCtrHdr #mainContent

    background: #FFFFFF;

    Width: 200px;

    margin-top: 0;

    margin-right: auto;

    left margin: auto;

    margin-bottom: 0px;

    }

    .oneColFixCtrHdr # sidebar1″, #sidebar2 {#mainContent

    text-align: center;

    Width: 200px;

    padding-top: 0px;

    padding-right: 30px;

    padding-bottom: 0;

    padding-left: 30px;

    }

    .oneColFixCtrHdr #footer {}

    padding: 0; / * This filling is the alignment to the left of the items in the div that appear above him. */

    background: #CFAF86;

    clear: both

    }

    .teammembers #nav #teammembers a {}

    color: #FFF;

    }

    {.oneColFixCtrHdr #memberdues}

    padding-right: 315px;

    padding-left: 315px;

    }

    .oneColFixCtrHdr #footer p {}

    margin: 0; / * zero setting the margins of the first element in the footer will avoid the possibility of the collapse of the margin - a space between the div tags * /.

    padding: 10px 0; / * padding on that element will create space, just as it would the margin, free margin collapse question * /.

    text-align: center;

    letter-spacing: 4px;

    }

    #container #nav {}

    line-height: 2em;

    make-weight: normal;

    background-color: #CFAF86;

    text-align: center;

    margin: 0px;

    padding-top: 0px;

    padding-bottom: 0px;

    padding-right: 10px;

    list-style-type: none;

    padding-left: 10px;

    }

    #container #nav li {}

    make-weight: bold;

    display: inline;

    padding-top: 0px;

    padding-right: 10px;

    padding-bottom: 0px;

    padding-left: 10px;

    }

    #container #nav li a {}

    Color: #000;

    text-decoration: none;

    }

    #container #nav li a: hover {}

    color: #FFF;

    text-decoration: none;

    }

    {.renegadestext}

    make-style: italic;

    make-weight: bold;

    Color: #000;

    }

    {.oneColFixCtrHdr #AboveMainContent}

    padding-top: 0px;

    padding-right: 20px;

    padding-bottom: 0px;

    padding-left: 20px;

    }

    .oneColFixCtrHdr #AboveMainContent h2 {}

    text-align: center;

    }

    {.oneColFixCtrHdr #sidebar1}

    background-color: #FFF;

    float: left;

    Width: 200px;

    }

    {.oneColFixCtrHdr #sidebar2}

    background-color: #FFF;

    float: right;

    Width: 200px;

    }

    {#thomasbarber}

    display: block;

    Width: 150px;

    height: 50px;

    background-image: url(images/thomas_barber.gif);

    background-repeat: no-repeat 0 0;

    }

    {#thomasbarber:hover}

    background-position: 0px-50px;

    }

    #thomasbarber span {}

    position: absolute;

    top:-999em;

    }

    {#janetbarber}

    display: block;

    Width: 150px;

    height: 50px;

    background-image: url(images/janet_barber.gif);

    background-repeat: no-repeat 0 0;

    }

    {#janetbarber:hover}

    background-position: 0px-50px;

    }

    #janetbarber span {}

    position: absolute;

    top:-999em;

    }

    {#karenallen}

    display: block;

    Width: 150px;

    height: 50px;

    background-image: url(images/karen_allen.gif);

    background-repeat: no-repeat 0 0;

    }

    {#karenallen:hover}

    background-position: 0px-50px;

    }

    #karenallen span {}

    position: absolute;

    top:-999em;

    }

    {#davidboudreaux}

    display: block;

    Width: 150px;

    height: 50px;

    background-image: url(images/david_boudreaux.gif);

    background-repeat: no-repeat 0 0;

    }

    {#davidboudreaux:hover}

    background-position: 0px-50px;

    }

    #davidboudreaux span {}

    position: absolute;

    top:-999em;

    }

    {#melbahanna}

    display: block;

    Width: 150px;

    height: 50px;

    background-image: url(images/melba_hanna.gif);

    background-repeat: no-repeat 0 0;

    }

    {#melbahanna:hover}

    background-position: 0px-50px;

    }

    #melbahanna span {}

    position: absolute;

    top:-999em;

    }

    {#kentunderwood}

    display: block;

    Width: 150px;

    height: 50px;

    background-image: url(images/kent_underwood.gif);

    background-repeat: no-repeat 0 0;

    }

    {#kentunderwood:hover}

    background-position: 0px-50px;

    }

    #kentunderwood span {}

    position: absolute;

    top:-999em;

    }

    {#shawntrainor}

    display: block;

    Width: 150px;

    height: 50px;

    background-image: url(images/shawn_trainor.gif);

    background-repeat: no-repeat 0 0;

    }

    {#shawntrainor:hover}

    background-position: 0px-50px;

    }

    #shawntrainor span {}

    position: absolute;

    top:-999em;

    }

    {#eddieokonski}

    display: block;

    Width: 150px;

    height: 50px;

    background-image: url(images/eddie_okonski.gif);

    background-repeat: no-repeat 0 0;

    }

    {#eddieokonski:hover}

    background-position: 0px-50px;

    }

    #eddieokonski span {}

    position: absolute;

    top:-999em;

    }

    {#scotthartman}

    display: block;

    Width: 150px;

    height: 50px;

    background-image: url(images/scott_hartman.gif);

    background-repeat: no-repeat 0 0;

    }

    {#scotthartman:hover}

    background-position: 0px-50px;

    }

    #scotthartman span {}

    position: absolute;

    top:-999em;

    }

    {#titoescobar}

    display: block;

    Width: 150px;

    height: 50px;

    background-image: url(images/tito_escobar.gif);

    background-repeat: no-repeat 0 0;

    }

    {#titoescobar:hover}

    background-position: 0px-50px;

    }

    #titoescobar span {}

    position: absolute;

    top:-999em;

    }

    {#debbiehanna}

    display: block;

    Width: 150px;

    height: 50px;

    background-image: url(images/debbie_hanna.gif);

    background-repeat: no-repeat 0 0;

    }

    {#debbiehanna:hover}

    background-position: 0px-50px;

    }

    #debbiehanna span {}

    position: absolute;

    top:-999em;

    }

    {#robertbarber}

    display: block;

    Width: 150px;

    height: 50px;

    background-image: url(images/robert_barber.gif);

    background-repeat: no-repeat 0 0;

    }

    {#robertbarber:hover}

    background-position: 0px-50px;

    }

    #robertbarber span {}

    position: absolute;

    top:-999em;

    }

    {#gregallen}

    display: block;

    Width: 150px;

    height: 50px;

    background-image: url(images/greg_allen.gif);

    background-repeat: no-repeat 0 0;

    }

    {#gregallen:hover}

    background-position: 0px-50px;

    }

    #gregallen span {}

    position: absolute;

    top:-999em;

    }

    {#johnmcclung}

    display: block;

    Width: 150px;

    height: 50px;

    background-image: url(images/john_mcclung.gif);

    background-repeat: no-repeat 0 0;

    }

    {#johnmcclung:hover}

    background-position: 0px-50px;

    }

    #johnmcclung span {}

    position: absolute;

    top:-999em;

    }

    {#miketisdel}

    display: block;

    Width: 150px;

    height: 50px;

    background-image: url(images/mike_tisdel.gif);

    background-repeat: no-repeat 0 0;

    }

    {#miketisdel:hover}

    background-position: 0px-50px;

    }

    #miketisdel span {}

    position: absolute;

    top:-999em;

    }

    {#butchhanna}

    display: block;

    Width: 150px;

    height: 50px;

    background-image: url(images/butch_hanna.gif);

    background-repeat: no-repeat 0 0;

    }

    {#butchhanna:hover}

    background-position: 0px-50px;

    }

    #butchhanna span {}

    position: absolute;

    top:-999em;

    }

    {#kimberlyshepherd}

    display: block;

    Width: 150px;

    height: 50px;

    background-image: url(images/kimberly_shepherd.gif);

    background-repeat: no-repeat 0 0;

    }

    {#kimberlyshepherd:hover}

    background-position: 0px-50px;

    }

    #kimberlyshepherd span {}

    position: absolute;

    top:-999em;

    }

    {#katrinabartkowiak}

    display: block;

    Width: 150px;

    height: 50px;

    background-image: url(images/katrina_bartkowiak.gif);

    background-repeat: no-repeat 0 0;

    }

    {#katrinabartkowiak:hover}

    background-position: 0px-50px;

    }

    #katrinabartkowiak span {}

    position: absolute;

    top:-999em;

    }

    {#michelehartman}

    display: block;

    Width: 150px;

    height: 50px;

    background-image: url(images/michele_hartman.gif);

    background-repeat: no-repeat 0 0;

    }

    {#michelehartman:hover}

    background-position: 0px-50px;

    }

    #michelehartman span {}

    position: absolute;

    top:-999em;

    }

    {#aliciaallen}

    display: block;

    Width: 150px;

    height: 50px;

    background-image: url(images/alicia_allen.gif);

    background-repeat: no-repeat 0 0;

    }

    {#aliciaallen:hover}

    background-position: 0px-50px;

    }

    #aliciaallen span {}

    position: absolute;

    top:-999em;

    }

    {#melissalockwood}

    display: block;

    Width: 150px;

    height: 50px;

    background-image: url(images/melissa_lockwood.gif);

    background-repeat: no-repeat 0 0;

    }

    {#melissalockwood:hover}

    background-position: 0px-50px;

    }

    #melissalockwood span {}

    position: absolute;

    top:-999em;

    }

    {#rustyhanna}

    display: block;

    Width: 150px;

    height: 50px;

    background-image: url(images/rusty_hanna.gif);

    background-repeat: no-repeat 0 0;

    }

    {#rustyhanna:hover}

    background-position: 0px-50px;

    }

    #rustyhanna span {}

    position: absolute;

    top:-999em;

    }

    {#karenbarber}

    display: block;

    Width: 150px;

    height: 50px;

    background-image: url(images/karen_barber.gif);

    background-repeat: no-repeat 0 0;

    }

    {#karenbarber:hover}

    background-position: 0px-50px;

    }

    #karenbarber span {}

    position: absolute;

    top:-999em;

    }

    {#chrishillman}

    display: block;

    Width: 150px;

    height: 50px;

    background-image: url(images/chris_hillman.gif);

    background-repeat: no-repeat 0 0;

    }

    {#chrishillman:hover}

    background-position: 0px-50px;

    }

    #chrishillman span {}

    position: absolute;

    top:-999em;

    }

    {#frankmarshall}

    display: block;

    Width: 150px;

    height: 50px;

    background-image: url(images/frank_marshall.gif);

    background-repeat: no-repeat 0 0;

    }

    {#frankmarshall:hover}

    background-position: 0px-50px;

    }

    #frankmarshall span {}

    position: absolute;

    top:-999em;

    }

    {#dorisboudreaux}

    display: block;

    Width: 150px;

    height: 50px;

    background-image: url(images/doris_boudreaux.gif);

    background-repeat: no-repeat 0 0;

    }

    {#dorisboudreaux:hover}

    background-position: 0px-50px;

    }

    #dorisboudreaux span {}

    position: absolute;

    top:-999em;

    }

    {#johnburkett}

    display: block;

    Width: 150px;

    height: 50px;

    background-image: url(images/john_burkett.gif);

    background-repeat: no-repeat 0 0;

    }

    {#johnburkett:hover}

    background-position: 0px-50px;

    }

    #johnburkett span {}

    position: absolute;

    top:-999em;

    }

    {#lisaburkett}

    display: block;

    Width: 150px;

    height: 50px;

    background-image: url(images/lisa_burkett.gif);

    background-repeat: no-repeat 0 0;

    }

    {#lisaburkett:hover}

    background-position: 0px-50px;

    }

    #lisaburkett span {}

    position: absolute;

    top:-999em;

    }

    {#andreagordon}

    display: block;

    Width: 150px;

    height: 50px;

    background-image: url(images/andrea_gordon.gif);

    background-repeat: no-repeat 0 0;

    }

    {#andreagordon:hover}

    background-position: 0px-50px;

    }

    #andreagordon span {}

    position: absolute;

    top:-999em;

    }

    {#jeffwilliams}

    display: block;

    Width: 150px;

    height: 50px;

    background-image: url(images/jeff_williams.gif);

    background-repeat: no-repeat 0 0;

    }

    {#jeffwilliams:hover}

    background-position: 0px-50px;

    }

    #jeffwilliams span {}

    position: absolute;

    top:-999em;

    }

    {#taylordavis}

    display: block;

    Width: 150px;

    height: 50px;

    background-image: url(images/taylor_davis.gif);

    background-repeat: no-repeat 0 0;

    }

    {#taylordavis:hover}

    background-position: 0px-50px;

    }

    #taylordavis span {}

    position: absolute;

    top:-999em;

    }

    {#leearnold}

    display: block;

    Width: 150px;

    height: 50px;

    background-image: url(images/lee_arnold.gif);

    background-repeat: no-repeat 0 0;

    }

    {#leearnold:hover}

    background-position: 0px-50px;

    }

    #leearnold span {}

    position: absolute;

    top:-999em;

    }

    ->

    < / style >

    Oops, looks like you do not have the text-align: center in your sidebar, all classes you need to do is pass the display: block display: Inline-block for all these id'd tags to get centered.

Maybe you are looking for