Centering different size images in movieclip

Hi,
I'm trying to center different size images in a movieclip
named "picture". The images load fine but they are not centered.
Flash's registration is very limited when it comes to setting this.
All the images are different sizes. I may get one to load correctly
but when another image loads of a different size the images is no
longer centered. I need all images to load in the center of the
clip no matter what the images size is. Here is the code that I'm
using:
stop();
function loadXML(loaded) {
if (loaded) {
xmlNode = this.firstChild;
image = [];
description = [];
total = xmlNode.childNodes.length;
for (i=0; i<total; i++) {
image
= xmlNode.childNodes.childNodes[0].firstChild.nodeValue;
description
= xmlNode.childNodes.childNodes[1].firstChild.nodeValue;
firstImage();
} else {
content = "file not loaded!";
xmlData = new XML();
xmlData.ignoreWhite = true;
xmlData.onLoad = loadXML;
xmlData.load("images-webbanner.xml");
listen = new Object();
listen.onKeyDown = function() {
if (Key.getCode() == Key.LEFT) {
prevImage();
} else if (Key.getCode() == Key.RIGHT) {
nextImage();
Key.addListener(listen);
previous_btn.onRelease = function() {
prevImage();
next_btn.onRelease = function() {
nextImage();
p = 0;
this.onEnterFrame = function() {
filesize = picture.getBytesTotal();
loaded = picture.getBytesLoaded();
preloader._visible = true;
if (loaded != filesize) {
preloader.preload_bar._xscale = 100*loaded/filesize;
} else {
preloader._visible = false;
if (picture._alpha<100) {
picture._alpha += 10;
function nextImage() {
if (p<(total-1)) {
p++;
if (loaded == filesize) {
picture._alpha = 0;
picture.loadMovie(image[p], 1);
desc_txt.text = description[p];
picture_num();
function prevImage() {
if (p>0) {
p--;
picture._alpha = 0;
picture.loadMovie(image[p], 1);
desc_txt.text = description[p];
picture_num();
function firstImage() {
if (loaded == filesize) {
picture._alpha = 0;
picture.loadMovie(image[0], 1);
desc_txt.text = description[0];
picture_num();
function picture_num() {
current_pos = p+1;
pos_txt.text = current_pos+" / "+total;
}

A very simple solution is to make a second image that contains the picture superimposed on the map. You would need to have 4 images total for this (all images are the same size):
1. The map with no photos
2 - 4. The map with a single image over the desired region (i.e., 3 additional images).
In your hotspots, you swap the entire map with the desired region map.

Similar Messages

  • How can I use the print module to print different size images on one large "canvas"?

    How can I use the print module to print different size images on one large "canvas"? An example would be in Photoshop, go to file>new, and create the size paper I want, and move images of different sizes onto it.
    I was thinking the print module would do this automatically for me.

    You can't, at present. It's been a requested feature, so we'll see if it shows up in a future version, but it's not there at present.

  • How to make different size images the same size pdf in Acrobat.

    I am trying to place 2 different size images into acrobat to create a pdf but one image is half the size. How do i make each page the same size when the images are different sizes?

    Thank you, I changed the image size to match and then placed them in acrobat.

  • Disjointed rollover with different size images?

    Every tutorial says the disjointed rollover images MUST be the same size, etc.  But for the type of photos I'm working with, it's impossible to make them the same height.  This site is exactly what I'm going for with the different sized images being used:  http://www.warmbloods-for-sale.com/HorseDetail.asp?HorseID=21333&UserID=1775.  Any idea how they accomplish this?  Or any ideas on how I can manage the same effect with different sizes in Dreamweaver CS4?

    Do a Google search for Lightbox, litebox, floatbox or look at Project Seven's Image Gallery Magic.
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists
    www.alt-web.com/
    www.twitter.com/altweb
    www.alt-web.com/blogspot.com

  • Print Different Sizes Images

    I use CS5 / 64bit and print on a Epson 3880 printer.  I sell my images at art shows & hops.  I shoot all image in RAW, on a Nikon D80.  I process all images first in CR.  When in CR I do not use the Crop Tool but do use most the other available tools.  I am able to process 80% of images corrections, in CR and the balance in Photoshop CR5.  I sharpen all image with PhotoKit 1.2.  I save all my processed images, in a Master Image (MI) file that can be accessed through Bridge or Photoshop.  The smallest image I sell is a 5x7 and the larges is 17x22.   How do I print different size picture image from the MI and keep resolution between 200 - 300 ppi, one per page to meet the demands for my customers.
    Thanks,
    jacklinn

    Hi,
    This forum is related to queries on the 'Adobe Community Help' application. For Photoshop queries, post your query on the Photoshop forum.
    Regards,
    Sandeep

  • Need help centering different sized images being loaded from a container

    stop();
    mainArea_mc.visible = false;
    home_btn.addEventListener(MouseEvent.CLICK, function () { gotoAndStop("Home Template")} );
    var totalImages:int = 0;
    var imageDirectory : String = "";
    var currentImage:int = 1;
    var filePrefix : String = "";
    var loader1 : Loader = new Loader(); // 2 loaders so we can fade an image on top of the other
    var loader2 : Loader = new Loader();
    pic_mc.addChild(loader1);
    pic_mc.addChild(loader2);
    loader1.name = "loader1";
    loader2.name = "loader2";
    loader1.contentLoaderInfo.addEventListener(Event.COMPLETE , resizeFadeImage);
    loader2.contentLoaderInfo.addEventListener(Event.COMPLETE , resizeFadeImage);
    info_mc.title_txt.autoSize = TextFieldAutoSize.LEFT;
    if (presModeSlides)  // Setup slide viewer vars
        totalImages = slides[currentSlideNumber].numSlides
        imageDirectory = "Data/slides/"+slides[currentSlideNumber].directory+"/";
        filePrefix = "slide";
        info_mc.title_txt.text = slides[currentSlideNumber].title
        info_mc.speaker_txt.text = slides[currentSlideNumber].speaker
        info_mc.university_txt.text = slides[currentSlideNumber].university
    else  // Setup picture viewer vars
        totalImages = 233;
        imageDirectory = "Data/pictures/";
        filePrefix = "picture";
        info_mc.title_txt.text =  "3rd International BioPlex® 2200 User Meeting";
        info_mc.speaker_txt.text = "Pictures";
        info_mc.university_txt.text = "";
    info_mc.speaker_txt.y += info_mc.title_txt.height;  // Position sublines so they are directly under title
    info_mc.university_txt.y += info_mc.title_txt.height;
    leftArrow_btn.addEventListener(MouseEvent.CLICK, prevImage);
    rightArrow_btn.addEventListener(MouseEvent.CLICK, nextImage);
    showImage(currentImage)
    function showImage(num:int)
        if (pic_mc.getChildIndex(loader1) > pic_mc.getChildIndex(loader2))  // Place the jpg into which ever container is on top at the moment
            loader1.load(new URLRequest(imageDirectory+filePrefix+currentImage+".jpg"));
        else
            loader2.load(new URLRequest(imageDirectory+filePrefix+currentImage+".jpg"));
    function resizeFadeImage(e:Event)
        e.currentTarget.loader.alpha = 0;
        Tweener.addTween(e.currentTarget.loader, {alpha:1, time:0.4, onComplete: removeOtherImage , onCompleteParams:[e.currentTarget.loader]});
        e.currentTarget.loader.scaleX = 0.75;
        e.currentTarget.loader.scaleY = 0.75;
        var bitMap : Bitmap = Bitmap(e.currentTarget.loader.content);
        bitMap.smoothing = true;
    function removeOtherImage(l:Loader)
        if (l.name=="loader1")
            pic_mc.setChildIndex(loader1,0);
            if (loader2.content != null)
                if (loader2.content is Bitmap)
                    (loader2.content as Bitmap).bitmapData.dispose();
        else
            pic_mc.setChildIndex(loader2,0);
            if (loader1.content != null)
                if (loader1.content is Bitmap)
                    (loader1.content as Bitmap).bitmapData.dispose();
    function nextImage(e:Event)
        if ((!Tweener.isTweening(loader1)) && (!Tweener.isTweening(loader2)))
            if (currentImage < totalImages)
                currentImage ++;
            else
                currentImage = 1;
            showImage(currentImage);
    function prevImage(e:Event)
        if ((!Tweener.isTweening(loader1)) && (!Tweener.isTweening(loader2)))
            if (currentImage > 1)
                currentImage --;
            else
                currentImage = totalImages;
            showImage(currentImage);

    function resizeFadeImage(e:Event)
        e.currentTarget.loader.alpha = 0;
        Tweener.addTween(e.currentTarget.loader, {alpha:1, time:0.4, onComplete: removeOtherImage , onCompleteParams:[e.currentTarget.loader]});
        e.currentTarget.loader.scaleX = 0.75;
        e.currentTarget.loader.scaleY = 0.75;
    e.currentTarget.loader.x = (stage.stageWidth-e.currentTarget.loader.width)/2;
    e.currentTarget.loader.y = (stage.stageHeight-e.currentTarget.loader.height)/2;
        var bitMap : Bitmap = Bitmap(e.currentTarget.loader.content);
        bitMap.smoothing = true;

  • Print Different Size Photo, one per page

    I am using PS5 in 64 bit mode.  I print on a Epson 3880 printer.  I shoot all photos in RAW.  I process all my RAW files in ACR accomplishing 80% of changes and the balance 20% in PS.  The output of my retouch is a Master Image (MI) File that I would like to print at different sizes.  I am starting to sell my images at Art Shops and Hops.  My customers would like to have different size images of my MI's  How do I print from the MI, different sizes images with a 150 - 300 ppi and maintain the integrity of the MI?
    I have tried the Image Tool but it will not let me print the image sizes that my customers want.  The Image Tool only allows me to change one dimension either (H) or (W) but not both.  Help.
    Jack

    If you want to print standard size images like 16x20, 8x10, 5x7, 4x6 etc these have different aspect ratios you will need to crop you image to the correct aspect ratio for the print you want or you could print different print sizes that have the same aspect ratio.  Like you camera most likely has a 3:2 aspect ratio if you use a DSLR. You could print all 3:2 aspect ratios image on you 3800. 3x2, 6x4, 9x6,12x8 15x10, 18x12, 21x14,  24x16... all that needs to be changed is the print DPI setting without resampling.    You have a 3800 that can print up to 17" wide.    You can print any size you want.  Some image cry out to be cropped.  They look best cropped for image composition is often best as some non standard aspect ratio.

  • How do I make a 20 X 30 print with layers of 16 X 20, 12 X 18, 11 X 14, 8 X 12, 8 X 10, 5 X 7 and 4 X 6 of the same image to display the different sizes available to someone?  Using Elements 13 with Windows 8.1

    How do I make a 20 X 30 print with layers of 16 X 20, 12 X 18, 11 X 14, 8 X 12, 8 X 10, 5 X 7 and 4 X 6 of the same image to display the different sizes available to someone?  Using Elements 13 with Windows 8.1
    A senior citizen needs some help.
    Thanks

    Saving each image as different size - is it an option for you?  I would save images with their name as: 20x30.png, 16x20.png etc etc.
    Or explain whether you want these in a webpage  in which case only one image is necessary and different sizes are displayed with good CSS code.  this is question for Dreamweaver forum if this is what you want.

  • Same image, different sizes

    I need to export the same image in different formats, for iPhone, iPad, Web etc.
    Actually, I import into one frame and then  - Copy/Paste into/Fill Frame Proportionally - on the other frames.
    Is there a simple way to do this in one shot? I can write a script to do this, but I was wondering if there was some sort of Command I was missing…
    Thank you

    Are yout talking about Alternative Layouts with the same content?
    Use the Content Collector and Placer tools and use the same image or content several times. If you work with object styles (as you should ALWAYS do) you can specify a auto fitting property in that style.
    With Liquid Layout you can specify the behavior of any frame how it resizes if the page gets or has different sizes.

  • How come every time I bring in a new image into Adobe Ideas as a background it's a different size?

    I created a multilayered stencil in Photoshop and each layer was exported as a TIFF.  Then I uploaded those TIFFs to Adobe Creative Cloud.  My idea was to trace each of the TIFFs using Adobe Ideas, which seems to work except, every time I bring in new TIFF as the background photo to trace, it's a different size.'
    How come every time I bring in a new image into Adobe Ideas as a background it's a different size?

    When importing images through the Photo layer in the layers panel, the image that comes in has a size that is dependent on the current zoom level of the document. This may explain why you are seeing different sizes. You can select the hand tool and double-tap on your sketch to return the zoom level to 100%. If you do this before importing your photo, then your photos should all be imported at the same size.
    Hope that helps,
    Frank
    Ideas Engineering

  • How to add different background image for submenu items???

    Hi all,
    I'm pretty new to web design and CSS in particular. Here's my problem...
    I've got a Spry horizontal menu bar (untouched as yet), and I want to have a different background image for my submenu items than that of my menu items. From searching the internet I think that I need to apply a class to the submenu item (please correct me if I am wrong).
    How would I go about doing this and how would I assign the class to just the submenu items?
    Also ideally I want to have my first and last menu items to have rounded corners on one side (therefore making a rounded edge menu bar), is it possible to have a different background image for individual menu items? If so, how?
    Really appreciate any help!

    Thanks for the link! I've managed to sort the background issue, and it seems to be working fine!
    Just one little issue left to tackle...
    I want my text to be centered in my top menu items BUT aligned left in my drop down menu items. I have managed this but the text hugs the left hand side. I've tried adding a little margin to the left but that doesn't seem to affect anything???
    Here's my CSS... Any ideas which class I should be targeting or why adding the margin isn't working would save my tearing the rest of my hair out! thanks! (screenshot attached).
    @charset "UTF-8";
    /* SpryMenuBarHorizontal.css - Revision: Spry Preview Release 1.4 */
    /* Copyright (c) 2006. Adobe Systems Incorporated. All rights reserved. */
    LAYOUT INFORMATION: describes box model, positioning, z-order
    /* The outermost container of the Menu Bar, an auto width box with no margin or padding */
    ul.MenuBarHorizontal
        margin: 0;
        padding: 0;
        list-style-type: none;
        cursor: default;
        width: auto;
    /* Set the active Menu Bar with this class, currently setting z-index to accomodate IE rendering bug: http://therealcrisp.xs4all.nl/meuk/IE-zindexbug.html */
    ul.MenuBarActive
        z-index: 1000;
    /* Menu item containers, position children relative to this container and are a fixed width */
    ul.MenuBarHorizontal li
        margin: 0;
        list-style-type: none;
        position: relative;
        text-align: left;
        cursor: pointer;
        width: 120px;
        float: left;
        height: 24px;
        padding-top: 0;
        padding-right: 0;
        padding-bottom: 0;
        padding-left: 0;
        background-repeat: repeat-x;
        background-color: #333333;
        background-image: url(../images/navbar_bg.jpg);
        border-right-width: 1px;
        border-left-width: 1px;
        border-right-style: solid;
        border-left-style: solid;
        border-right-color: #000000;
        border-left-color: #666666;
    ul.MenuBarHorizontal li li
        list-style-type: none;
        position: relative;
        text-align: left;
        cursor: pointer;
        width: auto;
        float: left;
        height: 24px;
        background-color: #333333;
        background-image: none;
        padding: 0;
        margin: 0;
        left: -1px;
    ul.MenuBarHorizontal li li a
        list-style-type: none;
        position: relative;
        text-align: left;
        cursor: pointer;
        float: left;
        height: 24px;
        background-image: none;
        font-size: 12px;
        font-weight: normal;
        border: 0px 0 0;
        width: 120px;
        font-family: Geneva, Arial, Helvetica, sans-serif;
        padding: 0;
        margin: 0;
    /* Submenus should appear below their parent (top: 0) with a higher z-index, but they are initially off the left side of the screen (-1000em) */
    ul.MenuBarHorizontal ul
        margin: 0;
        list-style-type: none;
        font-size: 100%;
        z-index: 1020;
        cursor: default;
        width: 120px;
        position: absolute;
        left: -1000em;
        height: 24px;
        padding-top: 0;
        padding-right: 0;
        padding-bottom: 0;
        padding-left: 0;
    /* Submenu that is showing with class designation MenuBarSubmenuVisible, we set left to auto so it comes onto the screen below its parent menu item */
    ul.MenuBarHorizontal ul.MenuBarSubmenuVisible
        left: auto;
    /* Submenus should appear slightly overlapping to the right (95%) and up (-5%) */
    ul.MenuBarHorizontal ul ul
        position: absolute;
        height: 24px;
        width: 120px;
        margin-top: -5%;
        margin-right: 0;
        margin-bottom: 0;
        margin-left: 95%;
    /* Submenu that is showing with class designation MenuBarSubmenuVisible, we set left to 0 so it comes onto the screen */
    ul.MenuBarHorizontal ul.MenuBarSubmenuVisible ul.MenuBarSubmenuVisible
        left: auto;
        top: 0;
    /* Menu items are a light gray block with padding and no text decoration */
    ul.MenuBarHorizontal li a
        display: block;
        cursor: pointer;
        text-decoration: none;
        font-style: normal;
        text-transform: capitalize;
        text-align: center;
        white-space: normal;
        padding: 0px;
        height: 24px;
        font-family: Geneva, Arial, Helvetica, sans-serif;
        font-size: 12px;
        font-weight: bold;
        color: #FFFFFF;
        line-height: 20px;
        margin: 0px;
    /* Menu items that are open with submenus are set to MenuBarItemHover with a blue background and white text */
    ul.MenuBarHorizontal li a.MenuBarItemHover, ul.MenuBarHorizontal a.MenuBarItemSubmenuHover, ul.MenuBarHorizontal a.MenuBarSubmenuVisible
        background-color: #000000;
        background-image: url(../images/navbar_bg_hover.jpg);
        background-repeat: repeat-x;
        line-height: 22px;
    ul.MenuBarHorizontal li li a.MenuBarItemHover, ul.MenuBarHorizontal a.MenuBarItemSubmenuHover, ul.MenuBarHorizontal a.MenuBarSubmenuVisible
        background-color: #000000;
        background-image: none;
        background-repeat: repeat-x;
        width: 120px;
        font-family: Geneva, Arial, Helvetica, sans-serif;
        font-size: 12px;
        font-weight: bold;
        color: #FFFFFF;
    /* Menu items that have a submenu have the class designation MenuBarItemSubmenu and are set to use a background image positioned on the far left (95%) and centered vertically (50%) */
    ul.MenuBarHorizontal a.MenuBarItemSubmenu
        background-repeat: repeat-x;
        background-position: 95% 50%;
        background-color: #333333;
        background-image: url(../images/navbar_bg.jpg);
    /* Menu items that are open with submenus have the class designation MenuBarItemSubmenuHover and are set to use a "hover" background image positioned on the far left (95%) and centered vertically (50%) */
    ul.MenuBarHorizontal a.MenuBarItemSubmenuHover
        background-repeat: repeat-x;
        background-position: 95% 50%;
        background-color: #000000;
        background-image: url(../images/navbar_bg_hover.jpg);
    BROWSER HACKS: the hacks below should not be changed unless you are an expert
    /* HACK FOR IE: to make sure the sub menus show above form controls, we underlay each submenu with an iframe */
    ul.MenuBarHorizontal iframe
        position: absolute;
        z-index: 1010;
    /* HACK FOR IE: to stabilize appearance of menu items; the slash in float is to keep IE 5.0 from parsing */
    @media screen, projection
        ul.MenuBarHorizontal li.MenuBarItemIE
        display: inline;
        f\loat: left;

  • Photo Gallery thumbnails in business catalyst render in different sizes in different browsers

    Photo Gallery thumbnails in business catalyst render in different sizes in safari and chrome but are fine in firefox. What is the issue with Safari? I have tried the different algorithm options such as fill_proportional etc and firefox is the only browser that displays correctly. I thought safari was the most standards compatible browser - what's the problem here?

    Hi,
    If you have seperate XML file but with the same basic structure then you can change the XML a Spry dataset refers to and regenerate the spry region without reloading the full page.
    So on my photo gallery page I can change the album the photos are shown from via the seturl sprydata function as below.  dsPhotos being my Spry dataset that points to the relevant XML dataset with my image references and captions etc.  My XML is actually dynamically generated from Picasa RSS feeds (and RSS feeds are XML) but the principle will be the same with your static XML.
    First I add an event listener for when someone clicks on an album (the li tag within my div with the id "albums" holds a photo and title for each album.)
    function Albums()
    var myalbums = Spry.$$("#albums li", "TabbedPanels1")
    var rows = dsAlbums.getData();
    var setListener = function( element, value )
      Spry.Utils.addEventListener( element, "click", function(){ showAlbum( value ); },false );
    for( var i = 0, length = myalbums.length; i < length; i++ )
      setListener( myalbums[i], i );
    Then this is the code which changes the photo album to be shown. (when the user clicks the relevant album)
    function showAlbum(i)
    pauseShow();
    pImage = 'No';
    var rows = dsAlbums.getData();
    var albumid = rows[i]["albumid"];
    var url = "xml/PicasaAphotoFeed.asp?albumid=" + albumid;
    dsPhotos.setURL(url);
    dsPhotos.loadData();
    var rowcount = dsAlbums.getRowCount() - 1;
    var nextalbum;
    var navnext;
    var n;
    The page is here www.thehmc.co.uk/photo5.html is you want to see it in context.
    In your case showAlbum would switch between Frank.xml or Wolfie.xml depending on how you decide to name your xml datasets.
    Regards
    Phil

  • Portfolio pdf- why is text in different sizes on each page of pdf?

    Even though i have saved my images with text (always  font size 12) as the same size (eg. 10in x 10in at 100ppi),  each time i save the images as a pdf the pdf then has all different size text from image to image-  a complete mess as a portfolio.
    Also when i then changed the size of the image and saved it as a copy, both images and text stay the same size!  though both the ppi and scale differ in each images....
    How do i change this? any tips appreciated!

    You can't write directly in PDF from Output Module, only add a header or
    footer text but that will repeat itself each page.
    You could try so in an app like Word or if you have Pages or other design
    application it would be possible to make your own layout and text and from
    there save as PDF.
    You can also try in PS, just create a template frame (new file) big enough
    to paste the images in and with space around including more at the bottom
    where you add the text you want. On the frame put a text layer and the file
    layer for the image by either drag and drop or copy paste. Resize the image
    till it fits in the frame
    You cans resize the image on the template layer to fit in the frame as you
    like and save as new files.
    Now you have same sized frame with same ppi and font size.
    With this files selected in Bridge in the order you want choose Output
    Module with option for paper size, landscape or portrait, background color.
    Choose 1 column and 1 row including auto space, deselect filename and
    extension and also deselect header and footer if thy are not so already
    (unless you want some text and page numbers)
    I created the images in photoshop and then  i use the bridge adobe output
    module- the pdf is a multiple page document with one image per page which
    has text written beneath the image -
    as in  the image is saved with a frame with title/text.
    Is there a way of writing individual text directly onto each pdf page
    instead of the image? perhaps this will solve the issue of differing text
    sizes....?

  • Spry Menu Bar - Different Background Image Wanted for menu items

    Hi, I've looked everywhere for help with this and just haven't found any answers yet ...
    I want my Dreamweaver CS5.5 menu to look like this design I've done in PhotoShop ...
    It's a simple one level list with no sub-levels.
    Everything is good, except I can only set one background image for all the menu items at this level.
    I want the first, last, and all the middle, menu items to use different background images.
    I have no idea where or how to insert the code to set a different background image for each individual menu item ...
    I know I could use images set one on top another in a column with rollover image swop, but the spry menu opens the door for dynamic content so I'm keen to get it working.
    Manchester city council has a great example of this style of menu design working at - http://www.manchester.gov.uk/
    They've got funky indenting of the text as well.
    ~~~~~~
    This is the code for my menu list ...
      <div class="sidebar1">
        <ul id="MenuBar1" class="MenuBarVertical">
          <li><a href="#">Home</a></li>
          <li><a href="#">News</a></li>
          <li><a href="#">Groups</a></li>
          <li><a href="#">Events</a></li>
          <li><a href="#">About</a></li>
          <li><a href="#">Contact</a></li>
             <li><a href="#">Help</a></li>
        </ul>
      </div>
    This is how I set the background image (but I can only define one image) ...
    I set the image background to "Menu-Nav-Bar-Pic-Top-v1-w170px-h32px.jpg" through ...
    CSS Styles
    SpryMenuBarVertical.css
    ul.MenuBarVertical a
    I then select the background category
    and browse to the image file.
    doing this changes my CSS code as follows ...
    ul.MenuBarVertical li
        padding: 0;
        list-style-type: none;
        font-size: 100%;
        position: relative;
        text-align: left;
        cursor: pointer;
        width: 170px;
        margin-top: 4px;
        margin-bottom: 4px;
        background: url(/Images/Menu-Nav-Bar-Pic-Top-v1-w170px-h32px.jpg);
    ul.MenuBarVertical ul
        padding: 0;
        list-style-type: none;
        font-size: 100%;
        position: absolute;
        z-index: 1020;
        cursor: default;
        width: 170px;
        left: -1000em;
        top: 0;
        margin-right: 0;
        margin-bottom: 0;
        margin-left: 95%;
        background: url(/Images/Menu-Nav-Bar-Pic-Top-v1-w170px-h32px.jpg);
    ul.MenuBarVertical a
        display: block;
        cursor: pointer;
        padding: 0.5em 0.75em;
        color: #0000;
        text-decoration: none;
        font: normal 12px Verdana, Geneva, sans-serif;
        background: #EEE url(/Images/Menu-Nav-Bar-Pic-Top-v1-w170px-h32px.jpg);
    ~~~~~~
    These are the three images I want to apply to the top middle and bottom menu items :
    Top menu item background image - "Menu-Nav-Bar-Pic-Top-v1-w170px-h32px.jpg"
    Middle menu items background image - "Menu-Nav-Bar-Pic-Mid-v1-w170px-h32px.jpg"
    Bottom menu item background image - "Menu-Nav-Bar-Pic-Bot-v1-w170px-h32px.jpg"
    ~~~~~~
    As I am unable to set the menu items individually, this is how the menu looks like on my website at the moment ...
    ~~~~~~
    So near yet so far ! I'm hapy with the verdana font, the image size and spacing, but the background images I just can't set them right.
    I'd really appreciate any help on this as I'm out of ideas.
    Thank you.

    The easiest way is to use pseudo elements.
    To style the first and last menu items ifferently to the rest, merely add :first-child and :last-child respectivly as follows
    <!DOCTYPE HTML>
    <html>
    <head>
    <meta charset="utf-8">
    <title>Untitled Document</title>
    <script src="SpryAssets/SpryMenuBar.js" type="text/javascript"></script>
    <link href="SpryAssets/SpryMenuBarVertical.css" rel="stylesheet" type="text/css">
    <style>
    ul.MenuBarVertical li:first-child a {
        background-color: red;
        color: white;
    ul.MenuBarVertical li:last-child a {
        background-color: green;
        color: yellow;
    </style>
    </head>
    <body>
    <ul id="MenuBar1" class="MenuBarVertical">
      <li><a href="#">Item 1</a></li>
      <li><a href="#">Item 2</a></li>
      <li><a href="#">Item 3</a></li>
      <li><a href="#">Item 4</a></li>
      <li><a href="#">Item 5</a></li>
    </ul>
    <script type="text/javascript">
    var MenuBar1 = new Spry.Widget.MenuBar("MenuBar1", {imgDown:"SpryAssets/SpryMenuBarDownHover.gif", imgRight:"SpryAssets/SpryMenuBarRightHover.gif"});
    </script>
    </body>
    </html>
    In your case, in liue of the background colour, you would have an image.
    Gramps

  • How to create ePUB with full size images/pages to adjust according to device?

    Friendly Greetings,
            I have been trying, for nigh on two months, to convert/create my 7 books that are in print into eBooks; with first publishing scheduled to be Nook, with Kindle on the eventually list. I am, sadly still working on just getting the first one published! And I could really use any assistance to get this figured out. My intent was to publish several weeks ago...now my desperation is to publish before the weather gets too warm and kids are outside most of the time...or at least no later than Easter. :0)
            First and foremost, my books are picture/poetry books for kids of all ages. They were fully designed in Photoshop, where I also created the full size images for the first eBook. I received the specifications from B&N for the various Nook devices. Under the assumption that it would be best to create the largest of the files, thus allowing smaller sized devices to adjust the page accordingly to fit and the largest would not overstretch a smaller image, I sized my pages to 1280px x 1920px at 72dpi. (now I hear 150 is standard??)
            My text is included within the image as the design is one image = one page. I included a full text only version of the story/poem at the end for those wishing to adjust text or use a voice reader. I obviously have all the original files, but for publishing they were all saved as JPGs.
            After quite a struggle and a whole lot of frustration I managed to complete the manuscript in Barnes and Noble's Nook Press Manuscript Editor. My internet is molasses and thus much of this was done in the wee hours of the morning when the rest of the time zone is asleep. I only had one page with an issue, of an extra blank line/space that was irreparable. I published, and found it was completely botched in publish, though the preview looked a-okay. Only about the top left 1/6 of each image/page was visible in either my laptop's Nook for PC or my Android Tablet's Nook App. So I agonizingly awaited another 10 hours, hoping no one would buy my book during that time, for it to be removed from sale.
            I downloaded a trial of InDesign CC, and after two weeks of not even being able to create a single new document for some screwy reason, I bought a month's subscription. So far I'm not entirely convinced of this whole Creative Cloud malarkey, especially considering...as like I said my internet is slow...it took me nearly 20 hours just download the software. (Is it really that difficult to offer disc, seriously?) After a chat and phone call I can, in theory, now use InDesign.
            I created a New Document for Digital Publishing at the aforementioned specs (1280 x 1920 px). I made the rectangle placeholders the full size of the page, and place one image per page. This usually inserted the image at about 50% and I would have to select 100% and then move as necessary in to place.
            Thus, my first question is: Is there a way to place an image at 100% without having to do that extra resizing step? Or if there is an alternative way to place the image to the full size of the page without any of those other steps that would be lovely too.
            Okay, after placing several pages/images I also selected each and went to Object Export Options and Checking the Custom Rasterization and "Resize to Text Flow".  I then exported a trial ePUB to see what it would look like. On both the PC and Tablet in landscape mode it was a far cry better than the other, but about oh a 1/3 of the bottom of each page was cut off. On the tablet I rotated to portrait and voila full page. Woohoo! But alas, I don't want to limit it.
            Is there something I am doing wrong? Did I miss a step or two somewhere so that the full image will fit on the page? I feel like I'm just about to turn the page on this thing, but it's stuck to the one after that.
            I would greatly appreciate any insight, tips, help that anyone can offer. I have run the gauntlet of Barnes and Noble...cough, cough...support and apparently I ask questions which no Nook Press rep can answer and the forums over there have no clue about InDesign. It's almost as if with all the fantastic beautiful screens out there today nobody wants picture books! How does National Geographic do it?!
            Thank you very kindly.
    In case it is necessary: My laptop uses Window 7 Pro 64-bit, InDesign CC is 64-bit and my 10.1 tablet uses Android. I can view the EPUB files in Nook for PC and Nook for Android. I also have Kindle, LumiRead, and various other apps on the tablet. I can also have someone preview the finished epub, if need, on a Mac, iPad, and/or Android phone...though I do not have any of these. Not sure who has a Nook I can look at though. Thanks again.

    Q: Is there a way to place an image at 100% without having to do that extra resizing step?
    I think here you want your images to fit in the full page size frame automatically. For this you can try the follwoing steps:
    1. Create a new doc
    2. Goto Object menu and choose Frame fitting options
    3. Select Autofit and from Fitting drowdown, select "Fit content to frame". Refer the screenshot below:
    After this you images should automatically fit in the entire page placeholder frames. Please let me know if this does not work or if the problem you are facing is different and I did not understand your problem correctly.
    Regards,
    Pooja

Maybe you are looking for

  • Search help is not showing list of objects available in ID

    Hi Everybody,   I developed some business objects( Message Interfaces ) in Integration Repository and transported these objects from developement system to Quality system. After successful transportation i am able to see these objects in IR (Quality

  • PDF data truncated

    Hi All, I am trying to convert the Spool data to PDF and sending it as email. The email has sent sucessfully, but the problem here is the data is getting truncated. But in spool I can see all the fields displayed. Where as in PDF some fields are gett

  • Unable to change stock posting date at usage decision while inspecting HUs

    If we were using materials without WMS it's simple: thereu2019s a button in the screen for stock posting by which we're able to change document date and posting date; but we're using WM and the screen is slightly different: the button I'm referring i

  • I am brand new to Photoshop Elements.  I cannot even open my file to edit it!

    I am brand new to Photoshop Elements.  I have Photoshop Elements 11.  I cannot do anything!  I need to open my jpgs and cannot.  I need to edit them!

  • IPod Classic 120gb resume function

    I've recently purchased a 120gb iPod classic. It does something no other iPod I've owned does, and it's driving me nuts and I want to shut it off, but don't know how. If I skip to the next track in a playlist, the next time the song that I skipped co