Advertisement

07.07.2008 at 03:01AM PDT, ID: 23542818 | Points: 500
[x]
Attachment Details

How to fix png with CSS classes in IE6 ?

Asked by proteam4 in Cascading Style Sheets (CSS), JavaScript, Extensible HTML (XHTML)

Tags: ,

Hi,

I am creating a web page which have a link with css class icon, something like below

// Markup code
<a href="mywebpage.php" class="lock_icon">Login</a>

// CSS class code
.lock_icon {
      background:url(/images/lock.png) no-repeat left;
        padding-left:20px;
}

Now the above coding is working fine in Firefox 2.x, 3.x and in IE 7.x  BUT its creating problem with IE 6.0 I have tried some png fixes but they are not able solve this problem, They all are solving the normal png's like if u have an img tag like following

// Markup
<img src="/images/lock.png" />

then they'll solve this in IE 6.0
But if u have png like above i have then they are unable to solve this....

Please tell me the solution, But one more thing i am not using jquery library,  so give me any solution which is not using jquery, I am using yui api library so if anyone have code in simple javascript or in yui then do tell me

Thank,
Start Free Trial
 
Loading Advertisement...
 
[+][-]07.07.2008 at 04:34AM PDT, ID: 21944062

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07.07.2008 at 04:38AM PDT, ID: 21944084

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]07.07.2008 at 04:40AM PDT, ID: 21944097

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]07.07.2008 at 04:44AM PDT, ID: 21944119

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07.07.2008 at 04:47AM PDT, ID: 21944139

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]07.07.2008 at 04:52AM PDT, ID: 21944172

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07.07.2008 at 04:53AM PDT, ID: 21944183

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628