- Impact
- 0
**
This code is used to place an image behind text. You can change the left and top dimensions to move the image anywhere on the page - (be sure to replace "yourimage.gif" with the appropriate image)
**
<html>
<head>
<style type="text/css">
img.x {position: absolute; left: 10; top: 20; z-index: -1}
</style>
</head>
<body>
<h1>You can enter your text here...</h1>
<img class="x" src="yourimage.gif" width="100" height="100">
<p>z-index is always default at 0. -1 will place the image behind the text...</p>
</body>
</html>
This code is used to place an image behind text. You can change the left and top dimensions to move the image anywhere on the page - (be sure to replace "yourimage.gif" with the appropriate image)
**
<html>
<head>
<style type="text/css">
img.x {position: absolute; left: 10; top: 20; z-index: -1}
</style>
</head>
<body>
<h1>You can enter your text here...</h1>
<img class="x" src="yourimage.gif" width="100" height="100">
<p>z-index is always default at 0. -1 will place the image behind the text...</p>
</body>
</html>