Free AdviceGet Free Advice
Home | Get advice | Give advice | Topics | Columnists | - !START HERE! -
Make Suggestions | Sitemap

Get Advice


Search Questions

Ask A Question

Browse Advice Columnists

Search Advice Columnists

Chat Room

Give Advice

View Questions
Search Questions
Advice Topics

Login

Username:
Password:
Remember me
Register for free!
Lost Password?

Want to give Advice?

Sign Up Now
(It's FREE!)

Miscellaneous

Shirts and Stuff
Page Backgrounds
Make Suggestions
Site News
Link To Us
About Us
Terms of Service
Help/FAQ
Sitemap
Contact Us


Using CSS to cover a background image


Question Posted Tuesday October 12 2004, 2:32 am

Thanks for answering my question about menu difficulties. I have a bigger and better question for you that I have searched far and wide for the answer to. Using CSS I want to cover a background image with a transparent .gif. All the tutorials out on the world wide web only show how to do this if the images is inside a box or table. Can I implement it to do a background image? If so, how can I get it to work cross-browsers? I've trying making a div id called cover and implementing it after the body tag, but it only works in FireFox, but not IE6.0.

Thanks for any help you could give me.

Draak ;)


[ Answer this question ]
Want to answer more questions in the Technology category?
Maybe give some free advice about: Internet & Web Design?


metawidget answered Tuesday October 12 2004, 11:06 am:
I think IE6 doesn't do transparency in background images, rather painting transparent pixels in their alternate colour. You can kludge a bit by making the transparent portions small and matching your transparent indexed colour to the back-background, but IE6 is a tad broken that way.

I suppose you could also use z-index and absolute positioning to place a box containing your .gif behind a box containing the foreground to your div, but that could get hairy if you're wanting to repeat the transparent-background thing.

IE6 sucks, and that's the bottom line... but one of those techniques might mask the suckage a bit...

[ metawidget's advice column | Ask metawidget A Question
]


More Questions:

<<< Previous Question: Basketball Question
Next Question >>>

Recent popular questions:
Want to give advice?

Click here to start your own advice column!

What happened here with my gamer friends?

All content on this page posted by members of advicenators.com is the responsibility those individual members. Other content © 2003-2014 advicenators.com. We do not promise accuracy, completeness, or usefulness of any advice and are not responsible for content.

Attention: NOTHING on this site may be reproduced in any fashion whatsoever without explicit consent (in writing) of the owner of said material, unless otherwise stated on the page where the content originated. Search engines are free to index and cache our content.
Users who post their account names or personal information in their questions have no expectation of privacy beyond that point for anything they disclose. Questions are otherwise considered anonymous to the general public.

[Valid RSS] eXTReMe Tracker