The Web Design Group

... Making the Web accessible to all.

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> transparent td background?
R1cky_Da_Man1982
post Feb 1 2012, 04:26 AM
Post #1


Newbie
*

Group: Members
Posts: 10
Joined: 1-February 12
Member No.: 16,370



Hi,
I was wandering if it is possible to make the background color of a table cell slightly transparent,
so i can have a bit of color behind the text without it been too invasive, as I want the main body background image to show through slightly.

so is this possible?

This post has been edited by R1cky_Da_Man1982: Feb 1 2012, 04:29 AM
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
pandy
post Feb 1 2012, 09:26 AM
Post #2


🌟Computer says no🌟
********

Group: WDG Moderators
Posts: 20,730
Joined: 9-August 06
Member No.: 6



There is a CSS property called opacity that does that, only it affects both the foreground and the background. And there are problems with IE.
http://www.quirksmode.org/css/opacity.html

There's an old trick that still works though, even if it tricky to vary the opacity. It involves using a special background image. Create a small GIF image. Color every second pixel in one color and let the others be background color you chose to start with. Like a chess board. Then make one of the colors transparent. It will trick the eye and the background will look semi-transparent.

Another trick is to position a DIV with opacity applied to it behind the content.
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
Darin McGrew
post Feb 1 2012, 12:15 PM
Post #3


WDG Member
********

Group: Root Admin
Posts: 8,365
Joined: 4-August 06
From: Mountain View, CA
Member No.: 3



Here's another technique that uses multiple background images, rather than relying upon opacity:
http://meyerweb.com/eric/css/edge/complexspiral/demo.html
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
Frederiek
post Feb 1 2012, 12:25 PM
Post #4


Programming Fanatic
********

Group: Members
Posts: 5,146
Joined: 23-August 06
From: Europe
Member No.: 9



Or, have a look here: http://www.impressivewebs.com/css-opacity-...child-elements/ .
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
R1cky_Da_Man1982
post Feb 2 2012, 10:57 AM
Post #5


Newbie
*

Group: Members
Posts: 10
Joined: 1-February 12
Member No.: 16,370



Thanks for the replies guys,

I have decided that what I am trying to achieve is too confusing so I am going to stick with the original layout.
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



- Lo-Fi Version Time is now: 19th April 2024 - 07:16 PM