Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8499045
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T00:33:52+00:00 2026-06-11T00:33:52+00:00

Hi.. I have a label whose background is gradient by default(IE ). label{ width:100px;

  • 0

Hi..

I have a label whose background is gradient by default(IE ).

     label{
      width:100px;
      height:100px;
      border:1px solid red;
      filter:progid:DXImageTransform.Microsoft.gradient(GradientType=0,startColorStr="#ff3333",endColorStr="#663300");
     }
<label> Rama Rao </label>

I am allowing user to change that background color either gradient or normal. I am getting the value that user has entered,and setting css:

<label style="background:#val1"> Rama Rao </label>

OR

  <label style="filter:progid:DXImageTransform.Microsoft.gradient(GradientType=0,startColorStr="#val1",endColorStr="#val2");"> Rama Rao </label>

It works if user again sets gradient …but not if user enter normal color…But as per my knowledge,an inline-style can override internal style…..But its not working in filter case (I mean, a filter cannot be overridden by background)…How can I overcome this?
Note : For name shake,I mentioned <label> here…But it may happen for any tag….

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-11T00:33:53+00:00Added an answer on June 11, 2026 at 12:33 am

    You can remove it using this:

    filter: progid:DXImageTransform.Microsoft.gradient(enabled = false);
    

    Also you can check this fiddle I made here.

    And the code your are using for gradients is for Internet Explorer only. If you want code that is compatible for most browsers check this tool here.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a Label, whose content is displayed by a while loop. when i
I have a template field in a gridview with a label whose text I
I have an NSTextField label whose value is bound to controller.status When I call
I have a very simple usercontrol, basically a textbox and a label, whose purpose
I have a label whose mouseover event opens up a popup. I am trying
I have a style applied to my whole application: AndroidManifest.xml: <application android:theme=@style/ApplicationStyle android:icon=@drawable/icon android:label=@string/app_name>
I have a Label that translates a code inserted by the user to the
I have a label which would display strings from 0 ft to say 999
i have a label tag and i want to remove text between <label> </label>
I have a label which labels the line numbers based on the text on

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.