...

View Full Version : Background image co-ordinates



Tombo
09-23-2002, 03:29 AM
Hey

... I'm not sure if this makes any sense... but I vaguely remember seeing somewhere that an image can be inserted on a page, as a background, with (x, y) co-ordinates.

... For example, say I have an image 250 x 250 in size, and I want it to appear behind a bunch of text on the page, exactly 50 pixels from the top and 15o pixels from the left... I'm sure it can be done, but I've no idea. <ilayers>?

... Anyways, kudos to whoever can help me out. :thumbsup:

adios
09-23-2002, 04:54 AM
<html>
<head>
<title>untitled</title>
</head>
<body>
<div style="width:400px;font:400 24px verdana;color:pink;background:url(http&#58;//graphics.theonion.com/pics_3834/bush_sends_troops.jpg) no-repeat 150px 50px;">
yadda yadda yadda yadda yadda yadda yadda yadda yadda yadda yadda yadda
yadda yadda yadda yadda yadda yadda yadda yadda yadda yadda yadda yadda
yadda yadda yadda yadda yadda yadda yadda yadda yadda yadda yadda yadda
yadda yadda yadda yadda yadda yadda yadda yadda yadda yadda yadda yadda
yadda yadda yadda yadda yadda yadda yadda
</div>
</body>
</html>

http://www.w3schools.com/css/css_background.asp



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum