Meaningless Drivel is fun!*
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
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: 61198
    
  66

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: 72
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: how to set background image and foreground image in css?