phranque

msg:4527577 | 11:07 pm on Dec 12, 2012 (gmt 0) |
does it show if you remove the body background-image?
|
SevenCubed

msg:4527578 | 11:13 pm on Dec 12, 2012 (gmt 0) |
There are various ways to accomplish it, here's one way... <!DOCTYPE html> <html lang="en-ca"> <head> <style type="text/css"> #container{background:url(style/bgtktsearch.jpg) top no-repeat; height:20em; margin:0 auto 0; width:40em;} #shadow{background:url(style/bgmanmglass.png) no-repeat; height:10em; position:relative; top:9em; left:3em; width:15em;} </style> </head> <body> <div id="container"> <div id="shadow"></div> </div> </body> </html> And needless to say make sure your images are in proper folder because the style directory is confusing, I would be looking for an "img" directory, but that's minor as long as your images are actually there.
|
Scotty13

msg:4527581 | 11:33 pm on Dec 12, 2012 (gmt 0) |
@phranque - Yes!
|
lucy24

msg:4527595 | 12:15 am on Dec 13, 2012 (gmt 0) |
What's the relevant html? Is everything in the same directory? Any change if your image URLs are both changed to site-absolute links? (These won't work locally. If you haven't already got a pseudo-server like WAMP/MAMP, install one. It's easy.)
|
rainborick

msg:4527824 | 4:55 pm on Dec 13, 2012 (gmt 0) |
As long as you can live with no support on older versions of IE, it would seem to me that simply using multiple background images would be simplest (note that the stacking order is from top to bottom):
body { background: url('style/bgmanmglass.png') bottom left no-repeat, url('style/bgtktsearch.jpg') center top no-repeat; }
You'll have to use an inline conditional <!--[if lt IE9]> to provide styles for IE<9, but I have hopes that since IE8 is down to about 12% the trend is to finally ignore them unless its an issue of usability.
|
|