View Single Post
Old 06-06-2006   #4 (permalink)
Telos
Eternal Being
 
Join Date: Feb 2006
Location: Finland
Posts: 239

Yeah Man1c M0g, go ahead. Just use it the way you see best.

You can also see an effective css replacement effect on this tutorial. It's always nicer to have all website images as background images and not use the IMG tag so using background-image, width, height and text-indent (-9999px) you can show all your images as background images. I usually do the basic layout images like that and use IMG tag only in dynamic content since the image replacement tags usually need an unique ID to work and it would be pointless to create css and id's on the fly. So image replacement goes like this:

HTML Code:
<style type="text/css">
    h1#replacement {
        width: 100px;
        height: 100px;
        background-image: url('myimage.jpg');
        background-repeat: no-repeat;
        text-indent: -9999px;
    }
</style>

<h1 id="replacement">My replaced image</h1>
__________________
Telos is offline