Solved

Transparent text button IE problem

Posted on 2011-09-20
9
198 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
Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

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.

 

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: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

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

Title # Comments Views Activity
Load data upon clicking a button 8 34
ASP.NET (VB) return a record 2 35
IEnumerable<T> to a List<T> 8 37
VS 2015 is giving [No relevant source lines] 2 24
Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
Why do we like using grid based layouts in website design? Let's look at the live examples of websites and compare them to grid based WordPress themes.
In this tutorial viewers will learn how to code links for mobile sites that, once clicked, send a call or text to a specified number. For a telephone link (once clicked, calls a number), begin with a normal "<a href=" link tag. For the href, specify…
The viewer will learn the basics of jQuery, including how to invoke it on a web page. 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.: (CODE)

809 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