Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

css and transparancy 3

Status
Not open for further replies.

snotmare

Programmer
Jan 15, 2004
262
US
Greeings!

I've searched this forum and some other sites, but have not found an answer yet. Perhaps I'm missing the obvious, but here is my question.

I have a web page with a background image. I have a simple table where I want to set the cells to different colors. I once saw somewhere where you can have the cell retain it's color, yet be somewhat transparent. I want the users to definately see the background image, yet definately see a color variation in each table cell that I can change dynamically (perhaps on a mouse over event in javascript). I'll probably have to consult the javascript forum for the later, but I wanted to get your input first.

Thanks for your response!

He who has knowledge spares his words, and a man of understanding is of a calm spirit. Even a fool is counted wise when he holds his peace; when he shuts his lips, he is considered perceptive. - King Solomon
 
You probably saw something about alpha opacity which, I believe, is an IE-specific CSS style.

I've used it before. It works nicely. If you can count on your users using IE, then...

Dave


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
O Time, Strength, Cash, and Patience! [infinity]
 
If you add to that:

Code:
-moz-opacity:0.85;
-khtml-opacity:0.85;

then it will also work in older versions of Firefox, Netscape 7 (and possibly 6), and older versions of Safari, too.

Dan

[tt]Dan's Page [blue]@[/blue] Code Couch
[/tt]
 
YES! That's what I was looking for, no wonder I couldn't find it. Too cool guys, thanks all! Stars all around!

He who has knowledge spares his words, and a man of understanding is of a calm spirit. Even a fool is counted wise when he holds his peace; when he shuts his lips, he is considered perceptive. - King Solomon
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top