aspose file tools*
The moose likes HTML, CSS and JavaScript and the fly likes using Sprite as background Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "using Sprite as background" Watch "using Sprite as background" New topic
Author

using Sprite as background

J Haley
Ranch Hand

Joined: Jul 22, 2004
Posts: 66
I'm having problems changing an existing site to use sprites. In the example below, I'm using the attached sprite to wrap my test text with a background. The background consist of 3 images, but I can't get the top image to render. This is my first use of sprites and I'm not sure what I'm missing.





[Thumbnail for sprite_hor_bgBox.png]

Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6


Eric
J Haley
Ranch Hand

Joined: Jul 22, 2004
Posts: 66
At first I thought this fixed it, but it does not. Once I include the doctype that our projects using the top sprite gets cut off.



[Thumbnail for sprite_hor_bgBox.png]

Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
-444 what? Meters, miles, yards, parsecs, lightyears?

Give some units.

Eric
J Haley
Ranch Hand

Joined: Jul 22, 2004
Posts: 66
px

Thanks! I think that's what I was missing. I've added "px" to my units and it seems to be rendering properly.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: using Sprite as background