Solved

Transparent text button IE problem

Posted on 2011-09-20
9
197 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
ScreenConnect 6.0 Free Trial

At ScreenConnect, partner feedback doesn't fall on deaf ears. We collected partner suggestions off of their virtual wish list and transformed them into one game-changing release: ScreenConnect 6.0. Explore all of the extras and enhancements for yourself!

 

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

VMware Disaster Recovery and Data Protection

In this expert guide, you’ll learn about the components of a Modern Data Center. You will use cases for the value-added capabilities of Veeam®, including combining backup and replication for VMware disaster recovery and using replication for data center migration.

Question has a verified solution.

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

This article discusses how to create an extensible mechanism for linked drop downs.
This article demonstrates how to create a simple responsive confirmation dialog with Ok and Cancel buttons using HTML, CSS, jQuery and Promises
In this tutorial viewers will learn how to customize the background color and font color of highlighted text using the ::selection element in CSS Begin by defining the selected text as an element in CSS by typing "::selection": Style the ::selection…
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

773 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