T wrote:
> If you want an ornate frame, for example, where parts of it overlap the 
> image, set the picture as the background image, then place the frame image 
> over the top.
>
> For example, each page loads a different image. This is called image.jpg in 
> the block below (just replace with your image name).
>
> <div class="bg_image" style="background-image: url(images/image.jpg);">
>       <img src="images/frame.png" ... />
> </div>
>   
    This isn't, IMO, the best approach. The reason is simple: your 
content is in the CSS, not in the page. What you're showing in your 
content is the frame, for every image, the style you add gives the 
actual image. This simply doesn't sound right.

> Make sure the inside of the frame is transparent, so your background image 
> will show through.
>   
[ยทยทยท]
> Use .png for the frame, cos it has excellent transparency support.
>   
    Yet another reason not to use it: PNG images don't work in IE6 (and, 
although we all regret this, IE6 is still the dominant browser in the 
real world).

    Rafael.
______________________________________________________________________
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
List policies -- http://css-discuss.org/policies.html
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/

Reply via email to