/    Sign up×
Community /Pin to ProfileBookmark

transparent background

i want to have a white background in tables on a black background but i want to be able to see what the background picture is through the white tables. like a transparent white or something. do you know what i mean? and how would i do that?

to post a comment
HTML

5 Comments(s)

Copy linkTweet thisAlerts:
@NogDogAug 25.2005 — Use a semitransparent image as the background for the table.
Copy linkTweet thisAlerts:
@The_Little_GuyAug 25.2005 — I found this, but im not sure if it works or not:
<i>
</i>&lt;div id="seethru" style="z-index: 1;position:absolute; top:10; left:10;"&gt;
&lt;table width="100%" cellpadding="2" cellspacing="5" border="0"&gt;
&lt;tr&gt;
&lt;td colspan="2" background="table1bg.gif" style="filter:alpha(opacity=25)"&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td background="table1bg.gif" style="filter:alpha(opacity=25)" width="200"&gt;&lt;/td&gt;
&lt;td background="table1bg.gif" style="filter:alpha(opacity=25)"&gt; &lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;
&lt;/div&gt;

&lt;div id="content" style="z-index: 2;position:absolute; top:10; left:10;"&gt;
&lt;table width="100%" cellpadding="2" cellspacing="5" border="0"&gt;
&lt;tr&gt;
&lt;td colspan="2"&gt;CONTENT&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td width="200"&gt;CONTENT&lt;/td&gt;
&lt;td&gt;CONTENT&lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;
&lt;/div&gt;
Copy linkTweet thisAlerts:
@blueandconfusedauthorAug 25.2005 — yeah the filter alpha opacity works for that. you dont need to use a background image on the tables at all the code is just
[CODE]
table{background-color:ffffff;filter:alpha(opacity=50);-moz-opacity:0.5;opacity: 0.5;
}[/CODE]


i just thought i'd let you know in case anyone else wants to do this.
Copy linkTweet thisAlerts:
@NogDogAug 25.2005 — However, it probably only works in IE.
Copy linkTweet thisAlerts:
@blueandconfusedauthorAug 26.2005 — nope it works in mozilla and firefox.
×

Success!

Help @blueandconfused spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.16,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...