Solved

Transparent text button IE problem

Posted on 2011-09-20
9
199 Views
Last Modified: 2012-06-21
Hello experts. I am having a problem with how IE is displaying a transparent button with text.
While every other up to date browser diplays my button properly IE is displaying it like this

Below is my CSS class of the button.

What am I missing here?
.buttonreplays
{
 	font-family: Verdana, Arial, sans-serif;
  font-weight: normal;
  font-size: 12;
	text-align:right;
	color: #FFFFFF;	
	border:0px;
	cursor:pointer;
	background-color: rgba(0, 0, 0, 0.0);
	filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#ff000000, endColorstr=#ff000000); 
	-ms-filter: "progid:DXImageTransform.Microsoft.gradient(startColorstr=#ff000000, endColorstr=#ff000000)";		
}

Open in new window

0
Comment
Question by:panos2009
  • 4
  • 3
9 Comments
 
LVL 40

Expert Comment

by:gurvinder372
ID: 36565806
check this cross browser background transparency code

.alpha60
                  {
                        /* Fallback for web browsers that doesn't support RGBa */
                        background: rgb(0, 0, 0) transparent;
                        /* RGBa with 0.6 opacity */
                        background: rgba(0, 0, 0, 0.6);
                        /* For IE 5.5 - 7*/
                        filter:progid:DXImageTransform.Microsoft.gradient(startColorstr=#99000000, endColorstr=#99000000);
                        /* For IE 8*/
                        -ms-filter: "progid:DXImageTransform.Microsoft.gradient(startColorstr=#99000000, endColorstr=#99000000)";
                  }
0
 

Author Comment

by:panos2009
ID: 36565923
That's exactly what I am using if you read my code. It's working fine when it comes to divs and tables but it's not working with <asp:Button>.
0
 
LVL 40

Expert Comment

by:gurvinder372
ID: 36565953
can you please attach the image rather than link to it, since it is not opening in my machine
0
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

Author Comment

by:panos2009
ID: 36565989
Here are the two images.
Others.jpg
IE.jpg
0
 
LVL 40

Expert Comment

by:gurvinder372
ID: 36566024
check this code
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
	<style>
		.buttonreplays
		{
			font-family: Verdana, Arial, sans-serif;
		  font-weight: normal;
		  font-size: 12;
			text-align:right;
			color: #000;	
			border:0px;
			cursor:pointer;
		}
		.alpha60
                  {
                        /* Fallback for web browsers that doesn't support RGBa */
                        background: rgb(0, 0, 0) transparent;
                        /* RGBa with 0.6 opacity */
                        background: rgba(0, 0, 0, 0.0);
                        /* For IE 5.5 - 7*/
                        filter:progid:DXImageTransform.Microsoft.gradient(startColorstr=#ffffff, endColorstr=#ffffff);
                        /* For IE 8*/
                        -ms-filter: "progid:DXImageTransform.Microsoft.gradient(startColorstr=#ffffff, endColorstr=#ffffff)";
                  }
	</style>
</HEAD>

<BODY>
	<input type="button" class="buttonreplays alpha60" value="value">
</BODY>
</HTML>

Open in new window

0
 

Author Comment

by:panos2009
ID: 36572253
It's not working either, I am getting a gray background instead of black :(
0
 

Accepted Solution

by:
panos2009 earned 0 total points
ID: 36572904
I accidentaly found the solution!

I removed all the transparency properties and set the background property to a non existing image and it works in all browsers!
0
 
LVL 19

Expert Comment

by:Amandeep Singh Bhullar
ID: 37913941
This question has been classified as abandoned and is closed as part of the Cleanup Program. See the recommendation for more details.
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

This article describes how to create custom column layout styles for Bootstrap. The article uses 5 columns to illustrate the concept, but the principle can be extended to any number of columns.
Find out what you should include to make the best professional email signature for your organization.
In this tutorial viewers will learn how to embed videos in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: "<!DOCTYPE html>": Use the <video> tag to insert a video. Define the src as the URL of your video; this is similar to …
The viewer will learn the benefit of using external CSS files and the relationship between class and ID selectors. Create your external css file by saving it as style.css then set up your style tags: (CODE) Reference the nav tag and set your prop…

749 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question