Forums
View unanswered posts | View active topics It is currently Sat Oct 25, 2014 3:27 am



Reply to topic  [ 3 posts ] 
 How to get rgba to work on a background? 
Author Message

Joined: Sun Sep 12, 2010 4:18 am
Posts: 10
Post How to get rgba to work on a background?
According to the documentation, I'm supposed to be able to use rgba colors for solid backgrounds:
http://css3pie.com/documentation/supported-css3-features/#rgba

But I can't get it to work. In fact, I can't even get IE8 to show any background whatsoever when I apply the PIE.htc behavior.

The following shows a solid white background:
Code:
.test {
    background-color: rgb(255, 255, 255);
    background-color: rgba(255, 255, 255, 0.6);
}


The following shows no background whatsoever:
Code:
.test {
    background-color: rgb(255, 255, 255);
    background-color: rgba(255, 255, 255, 0.6);
    -pie-background: rgba(255, 255, 255, 0.6);
    behavior: url(/PIE.htc);
}


I've tried every permutation of -pie-background, like -pie-background: none repeat scroll 0 0 #EEEEEE. Nothing works... I am able to get gradient-backgrounds to work with -pie-background... so -pie-background does work to some extent...

How do I get rgba to work?

Oh, I do not have drop shadows, I read in these forums a couple people having trouble with rgba and drop shadows..


Wed Jan 19, 2011 3:43 am
Profile

Joined: Wed Jul 14, 2010 11:46 am
Posts: 1446
Post Re: How to get rgba to work on a background?
Are your disappearing backgrounds perhaps this issue? http://css3pie.com/documentation/known-issues/#z-index


Wed Jan 19, 2011 9:25 am
Profile

Joined: Sun Sep 12, 2010 4:18 am
Posts: 10
Post Re: How to get rgba to work on a background?
Yes! Thank you Jason, setting position: relative fixed everything. If I may make a suggestion for the documentation... I would put this requirement in the documentation for using the various features like rgba values as backgrounds. I wouldn't have thought to look at the z-index known issue had you not pointed me there.


Sat Jan 22, 2011 1:22 am
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 3 posts ] 

Who is online

Users browsing this forum: Bing [Bot], Google [Bot], Yahoo [Bot] and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by STSoftware for PTF.