Go Back   CodingForums.com > :: Client side development > HTML & CSS

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 05-25-2007, 05:04 AM   PM User | #1
PHPycho
Regular Coder

 
Join Date: Dec 2005
Posts: 217
Thanks: 1
Thanked 0 Times in 0 Posts
PHPycho has a little shameless behaviour in the past
howto make transparent layer over an image ??

Hello forums !!
I had an image which is kept @ the background of a table.
I want to make a layer over that image ie transpaernt layer .
How to make that transparent layer using css ?
Any idea?
Awaiting for you help.
PHPycho is offline   Reply With Quote
Old 05-25-2007, 08:50 AM   PM User | #2
cyberlogi
New Coder

 
Join Date: Apr 2007
Location: Silicon Valley California
Posts: 71
Thanks: 0
Thanked 0 Times in 0 Posts
cyberlogi is an unknown quantity at this point
You can use the opacity settings:

http://www.mandarindesign.com/opacity.html

But it's complicated to prevent the text and other elements in the table from also inheriting the opacity of its parent.

A better way would be to use a transparent GIF, if you can, and a PNG if you have to.
cyberlogi is offline   Reply With Quote
Old 05-25-2007, 09:06 AM   PM User | #3
ahallicks
Senior Coder

 
ahallicks's Avatar
 
Join Date: May 2006
Location: Lancaster, UK
Posts: 1,134
Thanks: 1
Thanked 57 Times in 55 Posts
ahallicks is on a distinguished road
What on earth do you mean? If you set an image as the background of a div (or a table cell in your case, which leads me to believe you are using a tables-for-layout site, which is a BIG no no!) then you can create a div within that div that can act as a transparent layer? However, I don't see what purpose this could possibly be for? Could you explain a little more in depth what you are trying to do and maybe post a link, and some code to help us out?
__________________
"write it for FireFox then hack it for IE."
Quote:
Originally Posted by Mhtml View Post
Domains are like women - all the good ones are taken unless you want one from some foreign country.
Reputation is your friend

Development & SEO Tools
ahallicks is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 06:13 AM.


Advertisement
Log in to turn off these ads.