File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes HTML, CSS and JavaScript and the fly likes how to set background image and foreground image in css? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "how to set background image and foreground image in css?" Watch "how to set background image and foreground image in css?" New topic
Author

how to set background image and foreground image in css?

ashley Jug
Ranch Hand

Joined: Sep 02, 2011
Posts: 60
Hello,

sorry i know it sounds like a silly question but i have two pictures, pic1.jpg and pic2.jpg.I want to set pict1 as background and have pict2(foreground) displayed over pict1.jpg, i don't know how to set the pict2 over pict1.

I know for the background it will be :



In my html file it is:

how do i set pict2 over pict1 in the html file?

Thanks in advance.
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60041
    
  65

With an <img> tag. There's no such thing as a foreground image.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Mohan Mehra
Ranch Hand

Joined: Jul 28, 2011
Posts: 66
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: how to set background image and foreground image in css?
 
Similar Threads
Clickable Div Background image
Get Image height and width
CSS and image positioning
JTextPane Flicker During Image Swap
changing background color of JFileChooser.-urgent