How to overlay images with tags?

How can I overlay the small image (tag_smallimage) with the large image (tag_largeimage) ?
with HTML is...
<div style="position: absolute; z-index:100"><img src="yourimage1"></div>
<div style="position: absolute; z-index:5000"><img src="yourimage2"></div>
but how it works with tags?
Thank you in advance!

Well first off, your CSS is a little overkill.  You don't really need z-index at all since the image you want overlayed on top of the other image comes after the small image in the markup.  You can just set position:absolute and it will appear above your image by default. You'd want to use z-index if an element that comes before another element in the markup is required to be layered on top. Also, try to avoid inline styles unless you are doing an email campaign, in which case, inline styles are best practice since email clients rarely adhere to web standards.
I'm assuming you are creating a web app and you've creted the "smallimage" and "largeimage" fields already for your web app. Here's the HTML:
<div class="image-container">
     <div class="small-image">
          {tag_smallimage}
     </div>
     <div class="large-image">
          {tag_largeimage}
     </div>
</div>
And here's some CSS that you can put in your main stylesheet:
.image-container { position: relative; }
.large-image { position: absolute; top: 0; left: 0; }
This should work for you but you might run into problems with the large images running on top of other image groups if you use this in multiple places on one page.  What is your goal for these images?  A hover effect so that the large image shows when you hover over the small one?

Similar Messages

  • How show ONLY images with problems or needing metadata update, etc?

    In LR3, how do I show JUST the images that are waiting for a metadata update on disk?
    Or, more importantly, how do I show images that have a problem - the little box on the top right of the thumbnail with the exclamation point.
    If I have a dozen images out of 50,000 that have an error with "another process has updated the metadata" I want to see JUST THOSE IMAGES
    so I can fix the problem...
    How do I do this?

    Dave, there are two related issues:
    - LR appears to have a number of problems correctly identifying which images have metadata conflicts between the catalog and the files proper:
    http://feedback.photoshop.com/photoshop_family/topics/lr_3_5rc_reproducible_spurious_metad ata_file_needs_to_be_updated
    - LR has no mechanism that allows you to identify just those images with metadata conflicts:
    http://feedback.photoshop.com/photoshop_family/topics/metadata_collisions_between_catalogu e_and_files
    Please visit these feedback topics and add your vote and opinion.  Adobe pays closer attention to the feedback forum than this one.

  • How to Mask Image with different Shape

    Hi all,
    In my flex application , i am displaying a image which is in
    rectangle shape. but i want to show that image in a rounded
    rectangle shape, for that i want to mask the image with rounded
    rectangle, .
    anyone please tell me how to do this,
    i also tried by setting the mask property in the image, but i
    am not getting.
    please help me.
    thanks in advance
    regards
    avanthika

    Hi all
    i am trying in this way still i did not get it
    i have placed image in a canvas.
    <mx:Canvas id="c1" x="10" y="10" width="200"
    height="200">
    <mx:Image id="img2" source="image1.jpg" />
    </mx:Canvas>
    to mask the above image , i need shape to mask i have written
    following code it is not working
    import flash.display.*;
    public function init(){
    var square:Sprite = new Sprite();
    square.graphics.beginFill(0xFF0000);
    square.graphics.drawRect(0, 0, 200, 200);
    c1.addChild(square);
    img2.mask=square;
    please help me how to get this,
    Actually i don't know how to write code for drawing shapes in
    flex.
    Thanks in advance
    Regards
    Avanthika

  • How to overlay images

    Hi,
    im using Dreamweaver 8 and trying to 'mix' 2 images like
    laying one over the other. Can this be done?
    Thanks
    R.

    Wouldn't it be better to create a single image with this
    effect in your
    graphics editor?
    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
    ==================
    "Rudei" <[email protected]> wrote in message
    news:f1ipcm$f5$[email protected]..
    > Hi,
    >
    > im using Dreamweaver 8 and trying to 'mix' 2 images like
    laying one over
    > the other. Can this be done?
    >
    > Thanks
    >
    > R.

  • How to import images with path embedded in XML tag

    I have a website that has blogs with embedded images. I need to design an XML that can be imported in Indesign. I am able to import XML and lay it out in Indesign if I have only text. But I am not able to include or show the intermittent, embedded images in Indesign. Can this be done? -Thanks

    I can drag an image from, for example, the desktop, but if I delete that file on the desktop I won't be able to open that image in iPhoto, even if I've imported it
    That's an indication that you may have your library set up as a referenced library:
    Check the Advanced preferences in iPhoto to see if that checkbox is selected or not.  If it isn't checkec, check it and try importing agan. 
    To make sure all Photo Stream photos are automatically imported into your library set up iPhoto's PS preferences like this:
    You should read this User Tip by Terence Devlin which is the best treatise on how to access photos (for use outside of iPhoto):  How to Access Files in iPhoto
    OT

  • How to export images with transparent background in illustrator

    H i
    I am trying  to export a png, jpeg button design with curved designs. But the white background keeps appearing when exported.
    How do I remove the white background and just have the button image.
    Thank you.

    Tony404 wrote:
    I am trying  to export a png, jpeg button design with curved designs. But the white background keeps appearing when exported.
    Are you exporting as a PNG or exporting as a JPG?
    JPG doesn't support transparency so you'll have to export as a PNG and check the Transparency box.

  • How to change Images with ImageIcon

    Hello everyone, this is my first post on the forums.
    I am struggling at the moment to find a way to change images in my program. I am making a card game and when the user clicks a button it will replace the card he has with another card. I thought the following code would work but apparently it doesnt:
    String cardPathA = "image1.gif";
    ImageIcon imageCardA = new ImageIcon(cardPathA);   //cardPathA for example is image1.gif
    //during the program the user changes cards so it should now show image2.gif
    cardPathA = "image2.gif";
    imageCardA.setImage(cardPathA);The error occurs when compiling and it reads: "+setImage(java.awt.Image) in javax.swing.ImageIcon cannot be applied to (java.langlString)+".
    I have searched all over the internet and I haven't found anything. I would appreciate some help. Thanks :)

    im not really sure i made a quick example to show how I would change the imageIcon in a button, just change the paths for cardPathA and cardPathB for your pictures to get it working.
    The only other thing i can think of is maybe to call repaint() for the components you are trying to change the image?
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    class ImageChange extends JFrame implements ActionListener{
             final private String cardPathA;
            final private String cardPathB;
         private ImageIcon myImageIcon;
            private JButton changeCard;
            private int counter;
            private JPanel panel;
            private JButton imageButton;
         public ImageChange(){       
                changeCard = new JButton("Change Button");
                counter = 0;
                cardPathA = "1.gif";
                cardPathB = "2.gif";
                myImageIcon = new ImageIcon(cardPathA);
                imageButton = new JButton(myImageIcon);
            public void makeGui(){
                changeCard.addActionListener(this);
                panel = new JPanel(new BorderLayout());
                panel.add(changeCard,BorderLayout.NORTH);
                panel.add(imageButton,BorderLayout.CENTER);
                this.add(panel);
                this.setDefaultCloseOperation(this.EXIT_ON_CLOSE);
                this.pack();
                this.setVisible(true);
         public void actionPerformed (ActionEvent menuChoice){
                counter++;
                if(counter%2 ==0){             
                    myImageIcon = new ImageIcon(cardPathA);
                    imageButton.setIcon(myImageIcon);
                }else{
                    myImageIcon = new ImageIcon(cardPathB);
                    imageButton.setIcon(myImageIcon);
            public static void main(String[] args){
                ImageChange test = new ImageChange();
                test.makeGui();
    }Calypso

  • How to do image with input text?

    hi,iam using jdveloper 11.1.2.3.0 my requirement as follows...
    i have input text beside of that input text i need to display image of create insert(not below of input text)

    Hi,
    Something like this.
    <af:panelGroupLayout id="pgl1" layout="horizontal" inlineStyle='background-image:url("Convocation.jpg");'>
              <af:inputText label="Label 1" id="it1"/>
            </af:panelGroupLayout>
    thanks
    "thanxs TLanz but the group layout column is getting the width problem(means remaining columns are in same width except group layout column) so how to set with same width.........."
    from my understanding if your layout adjust according to your image you use strecth layout. I failed to get you "(means remaining columns are in same width except group layout column) "
    edited lately,

  • How to update image with data from database?

    hi,
    is it possible to update an image object which serves as template with some data from a database table like user name etc. by converting it to image bytes and how? The final image would show user name as part of the image

    anybody?

  • How to export images with Project Name to be visable by Photo Mechanic.

    Hello all,
    I am trying to create another complete set of my images, that can be edited by outside programs (Photo Mechanic and/or Lightroom). I am doing this by exporting the images out of a managed library. I want the Aperture "*Project name*" and Rating fields to be passed to Photo Mechanic. And then I want PM to be able to do queries on the Metadata fields containing the Aperture Project Name and Rating. My intention is to use Photo Mechanic to rename the images and relocate the images but still keep track of the Rating and Project Name.
    In Aperture, when I add a custom metadata item under IPTC and export the image, that custom metadata item does not show up in PM or Bridge for that matter.
    How can I export images and have the Rating and *Project Name* be exported and visible in PM or LR or Bridge?
    Thanks in advance,
    Dick B.

    There is not an easy way but Ian Wood's tool might help you out.
    Personally I would just use the "subfolder format" drop down options available in all of the export and relocate dialogs to sort them into directories that are based on Aperture project name - easy enough considering those other tools use file system based folders for there organization structure anyway.
    RB

  • How to resize image with high quality

    I refer lot of examples in image resizing. But quality of resized image not good. pls can give me solution for that with code?

    I refer lot of examples in image resizing.Have you read [_this article_|http://today.java.net/pub/a/today/2007/04/03/perils-of-image-getscaledinstance.html]?
    db

  • How to insert image with transparent background?

    I have several logos saved at .GIFs with transparent backgrounds that I would like to import into my dashboard, but it seems that the image component only supports JPEG.  Is there a way to import images while maintaining their transparency?

    Well, you CAN insert GIFs or other image formats.  But I have yet to figure out a way to take a GIF with a transparent background and import it into my Xcelsius while preserving the transparency.  The transparent background always just defaults to white.
    This is a crucial feature as I have some logos I want to use that are circular.  But if I can't give them a transparent background, it drastically limits their placement options.
    I know that flash does support transparency, so am I missing something here?

  • How to acquire images with a Sony dsc

    Hi, I would like to know if there is a method to interface or connect a consumer digital camera (Sony dsc- s650) to labview, what I'm trying to do is control the camera in order to acquire images whit it, I have read some stuff about .icd files but i havent been able to find more information about it, this is a school project i need to build a machien vision app but i'm very limited with hardware so fas this is the only camera i have, thanks.

    Hello mjasso,
    If you cannot buy NI hardware to
    interface with a camera, you have three options: firewire, GigE or USB
    cameras. From a datasheet I found on the web, the Sony dsc-s650 has a
    USB interface. The following knowledgebase article explains which USB
    cameras are supported:
    http://digital.ni.com/public.nsf/allkb/89E33B77CFE244E986256F8E004E0F13
    . You will need the NI-IMAQ for USB driver if the camera has a
    DirectShow filter. You will probably have to contact Sony to verify
    this information.  
     Please refer to the following webpage
    to see the requirements for the IMAQ for USB driver:
    http://sine.ni.com/devzone/cda/epd/p/id/5030 . I hope this helps. 
    Vivek Nath
    National Instruments
    Applications Engineer
    Machine Vision

  • How to export images with meta data from iPhoto?

    Hi
    I have about 4000 family photos which have been scanned and imported to iPhoto. They are all dated the same day, naturally. I'm now in the process of adding metadata to every photo: location, faces, time and year, file name and description.
    Once I have gone through every photo, I will put them into albums based on events and the meta data above.
    Eventually, I will want to share all these photos with people who should like to see them (and who are not tech savvy...) I'm looking for the best approach to do to this.
    1. Will all the metadata that I have added remain in the photos when I export them?
    2. What exactly is the best approach to export these 4000 photos?
              - As I have gone through all the hard work of sorting the photos in albums, is it possible to export these photos in the albums that they already in?
    I hope to hear from someone out there. Thanks a lot
    Best wishes

    You need to have an application like  EXIF Viewer for Mac OS X  to check the files once you've exported them with the various checkboxes checked:
    Happy Holidays

  • How to overlay image onto black clothing?

    I have two screenshots attached.  One is when overlay is applied to layer and one is without.  Im trying to have the effects of overlay without losing color and brightness in design.  When i try to brighten the overlayed layer it changes the color of the shirt. Also, soft light and hard light do not look desirable as well.  I would like the design to look normal in color but still have that overlay effect where the curvatures and seams in the shirt are shown through the design. Any suggestions or help ? Thank you.

    Displacement map, maybe?

Maybe you are looking for

  • How to make two Range Selection at the same time?

    In a single clip, at the same time, in two locations, I would like to have Range Selection.  Then I would like to switch between the two and play within the range one after the other immedeately. Is this possible?  Thanks.

  • Return order configuratiion setting

    hi every body             i have doubt regarding return order copy control settings( pls don't post any notes regarding return order, pls clarify my doubt). i am practising on IDES 000  and 800 clients. in 000 client copy control settings r RE-credit

  • Error on Undeploy:  Application with name "crazy" does not exist.

    I am working with Jdeveloper Studio Edition Version 11.1.1.6.0 Build JDEVADF_11.1.1.6.0_GENERIC_111205.1733.6192. I have applications that run fine, however when I click on the undeploy, I get the error below. Please keep in mind that this is a simpl

  • Oracle BI SE1 configuration for Finantial

    Hi, I am configuring Oracle BI Standart Edition one. My aim is to use it as reporting tool for EBS finantials. Please inform me, does BI SE1 provide a predefined model for EBS finantials, including cubes, dimensions, tables, mappings, etc? Does it co

  • All Project Across Organizations List View- Why some projects read only?

    Hello all ! I sign on as administrator in SSE and on All Project Across Organizations List View : Screen: Projects Screen (ePS) View: All Project Across Organizations List View Business Object: Project Applets: Applet[0]: Project List Applet; Applet[