View Full Version : Semi-Transparent Tables
xoblivionxfantasyx
01-05-2007, 02:10 PM
Could someone help me on a simple code that makes my table semi-transparent, i have looked throught all the other posts concerning this topic, but i haven't found a code that had worked, i use both firefox and ie.
-Thank-you
mburt
01-05-2007, 02:39 PM
<table style="filter:alpha(Opacity=50);opacity:0.5">
The first filter, is for IE. "50" means fifty percent transparent. The second opacity setting is for Firefox, the transparency is on a scale of 0.0 to 1.0, 0.5 is half transparent.
The second opacity setting is for FirefoxAnd everything else that supports CSS3. You might want to add some more for older browsers:
<table style="filter:alpha(Opacity=50); opacity:0.5; -moz-opacity:0.5; -khtml-opacity:0.5;">However, it still won't work in Opera, which doesn't (as far as I remember, although there's something niggling in the back of my brain) support opacity at all.
xoblivionxfantasyx
01-05-2007, 08:12 PM
Thank-you for your help, the table displayed in fire fox doesn't show the borders, but in ie it does, is there some way to fix this?
Do you want it to show the border or not?
xoblivionxfantasyx
01-05-2007, 08:56 PM
yes i do want it to show the border
<table style="filter:alpha(Opacity=50); opacity:0.5; -moz-opacity:0.5; -khtml-opacity:0.5; border:3px white ridge;">
xoblivionxfantasyx
01-05-2007, 09:27 PM
Thank-you, that works, but my column border line doesn't show up
mburt
01-05-2007, 09:39 PM
The style of the table border doesn't affect the inside borders. Write Twey's code on the <td> tags too.
xoblivionxfantasyx
01-05-2007, 09:43 PM
i had switched it to a black border, but my column line doesn't show up just the border around the whole table
benniaustin
01-05-2007, 10:55 PM
You need to add the css for the border to the td as well
<td style="border:1px solid black;">
And before asking your next question, try adding border-collapse:collapse; to the <table> css
xoblivionxfantasyx
01-05-2007, 10:58 PM
thank-you that worked
Powered by vBulletin® Version 4.2.2 Copyright © 2021 vBulletin Solutions, Inc. All rights reserved.