opacity

If two partially opaque shapes overlap, can I show only one shape where they overlap?

丶灬走出姿态 提交于 2019-12-01 07:14:28
For example if you have a simple "spy glass" shape made of a circle and a rectangle and the outlines of both are partially transparent, can you stop the opacity effectively being decreased where the two shapes overlap? You can use a filter to tweak the opacity value. Say, both shapes have an opacity value of .5, then you want to make the area where both overlap to have an opacity value of .5 as well. <svg xmlns="http://www.w3.org/2000/svg" width="300px" height="300px"> <filter id="constantOpacity"> <feComponentTransfer> <!-- This transfer function leaves all alpha values of the unfiltered

Android: Nested linear layout with different alpha value

吃可爱长大的小学妹 提交于 2019-12-01 06:03:46
问题 I have a rectangular LinearLayout that has some margin, some round corners and an alpha value of 0.3. Inside this layout I have 4 different layouts as I display different images in different positions. My issue is that although the primary layout is 0.3, I want my child to be fully visible, or not affected by it's parent alpha, and I am wondering how I can please do that please? I have tried setting alpha=1 on the children layouts but it did not work. Setting it to 0 does make the children

If two partially opaque shapes overlap, can I show only one shape where they overlap?

℡╲_俬逩灬. 提交于 2019-12-01 04:44:25
问题 For example if you have a simple "spy glass" shape made of a circle and a rectangle and the outlines of both are partially transparent, can you stop the opacity effectively being decreased where the two shapes overlap? 回答1: You can use a filter to tweak the opacity value. Say, both shapes have an opacity value of .5, then you want to make the area where both overlap to have an opacity value of .5 as well. <svg xmlns="http://www.w3.org/2000/svg" width="300px" height="300px"> <filter id=

Problem with opacity in IE8

亡梦爱人 提交于 2019-11-30 23:29:50
I try to solve a problem that appears in IE8. Html is very simple: <div id="overlay"> </div> <div id="imgcontainer"> <div> <div id="source"> </div> </div> </div> When I set (using jQuery) opacity of "#source" element with "0" in IE I can see the background of #overlay, not #imgcontainer > div, but why? There is a javascript code: $(function(){ $("#source").css({ opacity: "0", }); $("#overlay").css({ width: $(window).width(), height: $(window).height(), display: "block", opacity: "0.6" }); $("#imgcontainer").css({ zIndex: 2, position: "fixed", opacity: "1", left: "0", right: "0", top: "100px",

css opacity not working in IE7

笑着哭i 提交于 2019-11-30 23:26:02
问题 I have this test page : http://jsfiddle.net/VWnm9/7/. The image is correctly faded on all my computers running IE7 or IE8, except for one computer that runs IE7 and doesn't fade the flower, even in noext mode. The page is : <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html lang="en"> <head> <style type="text/css"> body { background: blue; } img { filter: alpha(opacity=10); opacity: 0.1; } </style> </head> <body> <img src="http:/

Opacity in IE8 works on <p> but not on <a>

ε祈祈猫儿з 提交于 2019-11-30 22:28:45
I have a problem with IE8 where I cannot make <a> elements transparent. I've found these related SO questions but I haven't had any luck with the answers provided there: Opacity CSS not working in IE8 Opacity in web pages? I've tried " giving layout ", by using zoom: 1; , but it hasn't helped. Here is my test CSS, lifted from the example on this page : .test { background-color: #6374AB; width: 100%; color: #ffffff; zoom: 1; } .opaque1 { opacity: .5; } .opaque2 { filter: alpha(opacity=50); } .opaque3 { -ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=50)"; } .opaque4 { -ms-filter:

Opacity in IE8 works on <p> but not on <a>

本秂侑毒 提交于 2019-11-30 17:51:27
问题 I have a problem with IE8 where I cannot make <a> elements transparent. I've found these related SO questions but I haven't had any luck with the answers provided there: Opacity CSS not working in IE8 Opacity in web pages? I've tried "giving layout", by using zoom: 1; , but it hasn't helped. Here is my test CSS, lifted from the example on this page: .test { background-color: #6374AB; width: 100%; color: #ffffff; zoom: 1; } .opaque1 { opacity: .5; } .opaque2 { filter: alpha(opacity=50); }

Transparent Bootstrap Panel

天涯浪子 提交于 2019-11-30 17:31:31
I have picked this free bootstrap theme , and my problem is that I want to create transparent panels, but when I set opacity: 0.8; the text in the panel, of course, gets transparent, which is not something I would like to happen. I tried using this CSS code, but it looks like there is still something behind the heading and body and the panel doesn't get transparent. .panel-transparent .panel-heading{ background: rgba(122, 130, 136, 0.2)!important; } .panel-transparent .panel-body{ background: rgba(46, 51, 56, 0.2)!important; } EDIT - Sample HTML: <div class="panel panel-primary"> <div class=

CSS: Semi-transparent background and an image

烈酒焚心 提交于 2019-11-30 14:49:23
body { background-image: url('cloud.png'); background-color: rgba(255, 255, 255, 0.6); } I tried using the above to produce a semi-transparent white background above a background-image. It doesn't work, only the background image is shown and the background-color appears to be ignored. How can I adjust the opacity of a body background image? Kevin Borders background-color is placed underneath background-image , not above it (when rendered in the web-browser). To put a semi-transparent white block over an image, you will need to place another different HTML element on top of it with background

transparent background image

ⅰ亾dé卋堺 提交于 2019-11-30 11:48:49
I have the following css. #mypass{ background-image: url("Images/logo.png"); background-attachment: fixed; background-position:140px 100px ; background-size: 100px; background-repeat: no-repeat; opacity:0.5; fileter:alpha(opacity=40); color: blue; } and iam using this as <div id="mypass"> <center><h2>PRAGATI ENGINEERING COLLEGE</h2> <h5>1-378,ADB Road,Surampalem-533437,E.G.Dist.,ph:08852-252233</h5></center> <% out.println("________________________________________________________"); String photo="Image/"+id+".jpeg"; System.out.println(photo); String yy=""; int y=((1900+d.getYear())-(Integer