Solved

Transparent text button IE problem

Posted on 2011-09-20
9
195 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
 

Author Comment

by:panos2009
ID: 36565989
Here are the two images.
Others.jpg
IE.jpg
0
Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

 
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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Building a website can seem like a daunting task to the uninitiated but it really only requires knowledge of two basic languages: HTML and CSS.
This article explains how to prepare an HTML email signature template file containing dynamic placeholders for users' Azure AD data. Furthermore, it explains how to use this file to remotely set up a department-wide email signature policy in Office …
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…
In this tutorial viewers will learn how to embed custom externally-hosted Google Fonts using the Google Font API in CSS Go to the Google Fonts website at google.com/fonts: Browse or search based on font properties or name to find a suitable font for…

757 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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now