Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Background image sprites, WITH repeat?

Status
Not open for further replies.

youradds

Programmer
Jun 27, 2001
817
GB
Hi,

I'm just having a play around with CSS sprites for our backgrounds (we have 6 main images as backgrounds, so I'm trying to merge them all into one)

I've got the following:

Code:
<html>

<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>New Page 31</title>
<style>
body{
	background:url([URL unfurl="true"]http://carmstatic.com/images/bg-sprites.png)[/URL] top center;
	background-position: 0px 0px;
	background-repeat: repeat-y;
	width:4px;
	height:4px;
	text-align:center;
}
</style>

</head>

<body>

</body>

</html>

This doersn't seem to work right (the "body" should just show the 4x4px image at the top left of the image)

Can anyone point me in the right direction? Scratching my head here, as doesn't seem to work

Cheers

Andy
 
Never mind, worked it out :) (looks like I can't use the sprite for the main BG image - which isn't too bad - hopefully I can get it working on some of the header bars and stuff though)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top