| | |||||
| ||||||||
| CODE This forum is for posting code snippets and example scripts that aren't quite tutorials, but could be useful for others. You may post code snippets and/or completed scripts that you've written and want to share here. |
![]() |
| | LinkBack | Thread Tools |
| | THREAD STARTER #1 (permalink) |
| NamePros Member Join Date: Aug 2003
Posts: 36
![]() | CSS - Layers ** 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> ????: NamePros.com http://www.namepros.com/code/15299-css-layers.html </body> </html> |
| |
| | #2 (permalink) |
| NamePros Member Join Date: Jul 2003
Posts: 118
![]() | Nice one!!
__________________ Paulicon Web design - Your one stop shop |
| |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| |