Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
CSS Transparency-All Browsers
#1
one of the trickiest things you can accomplish. Transparency for all browsers, esp in the CSS itself. Well here is my simple little code you can use to actually make your website bg, or what ever you want to do with it transparent. I hope you enjoy.

Code:
.transparent_class {
filter:alpha(opacity=50);
-moz-opacity:0.5;
-khtml-opacity: 0.5;
opacity: 0.5;
}

Now here are some little instructions for ya and the meaning to the code so you can edit it yourself.

opacity: 0.5; This is the main part, do not mess with it, This will work in most versions of Firefox, Safari, and Opera. This would be all you need if all browsers supported current standards. which of course.....they dont

filter:alpha(opacity=50); for the most hated browser IE

-moz-opacity:0.5; for the ghetto firefox and netscape

-khtml-opacity: 0.5; This is for way old versions of Safari (1.x)

You can find other codes like this on google.....but i dont think any of them really get all browsers. Least not yet.

Note: I have not tested this out on ALL browsers, other than stated, so dont expect this t work all of the time.
Reply
#2
Way to rip something and not give credit to where you got it from.
Do you know how to make games? Do you know 3d Modeling? If so then visit
[Image: logo.png]
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Free Worker HTML, CSS, Javascript ImFocuzz 2 1,285 04-05-2014, 10:01 PM
Last Post: VHPanda
  Forum CSS code problem. inferno.lion 0 824 06-10-2013, 02:48 AM
Last Post: inferno.lion
  MyBB CSS Postbit Buttons Peter L 1 1,445 07-14-2012, 05:52 PM
Last Post: 'Snorlax
  Can I get such css3 animation to work in Internet Explorer, Opera, and such browsers? Mark Topper 1 851 07-14-2012, 05:26 PM
Last Post: 'Snorlax
  inline css question andrewjs18 1 1,016 03-24-2012, 10:11 AM
Last Post: Haxalot

Forum Jump:


Users browsing this thread: 2 Guest(s)