remove 'disabled' attr with pure css [duplicate] - css

This question already has answers here:
How do I disable form fields using CSS?
(13 answers)
Closed 9 years ago.
I m know how to remove disabled with js, but is it possible to user only css?
I have 2 css classes. 1 for active buttons and 1 for disabled ones! If css can enable button. I could use just jquery's addClass and removeClass...
p.s. sorry for my super english skill.

It is not possible to remove any attribute with CSS. CSS cannot change the document tree at all. It can only specify suggestions on the rendering of a document.

Related

Can you disable all css loading on chrome? [duplicate]

This question already has answers here:
How to disable CSS in Browser for testing purposes
(19 answers)
Closed 7 months ago.
I am looking for an option based solution.
Of course there is an option to remove all style tags one by one from the elements panel, this will not remove inline injected styles.
For debugging purposes I would like this option to be at reach, I remember this being an option at one time.
For debugging you could try commenting out link tag in html body that has link to CSS stylesheet
You can do that on Firefox, found in the menu under View -> Website Style -> No Style (the wording might be slightly different, I don't have english version of FF installed but you should find it rather easily I guess.

CSS selector by tabindex [duplicate]

This question already has an answer here:
CSS data attribute conditional value selector?
(1 answer)
Closed 6 years ago.
I want to write this in CSS li[tabindex > '5'] {} to select all tabindex which have a number greater than 5. Is it possible ?
This can´t be made with CSS.
I am no expert with javascript so I can´t provide you the code, but I´m sure you can achieve it with js.
maybe this gives you a good start:
jQuery: Selecting all elements where attribute is greater than a value

html email css selector why use them [duplicate]

This question already has answers here:
Anyone know what the purpose of tagging a class with *[class]
(2 answers)
Closed 7 years ago.
I see a lot of html emails and they have CSS like this:
*[class].w320
Now I think I understand CSS selectors, but to me the above does not really make sense because you are not really targeting anything. Isn't the above the same as simply doing this?
.w320
Any thoughts why they use the selector?
Actually using square brackets (attribute selectors) is a fix for yahoo mail.
I know you understand the selectors, but just a description of what they do:
This selects all elements with a class attribute and that also are members of the w320 class
*[class].w320
And this simply selects all elements with class of .w320
.w320
You can see Email Clients' CSS Support Here

Can I use attr() inside background url() in CSS? [duplicate]

This question already has an answer here:
Using HTML attributes as CSS property values [duplicate]
(1 answer)
Closed 9 years ago.
I would like to do this in HTML:
text
and in CSS:
a {
background-image: url(attr(href));
}
It doesn't seem to work for me. Is it even possible?
Not possible in static CSS file. However you can have dynamically generated CSS by any server side language such as PHP.
Or use Sass or LESS if you need variables in CSS.

What should I do to prevent GWT from using its theme and totally use the CSS that I specify [duplicate]

This question already has answers here:
Closed 12 years ago.
Possible Duplicate:
GWT theme style overrides my css style
What should I do to prevent GWT from using its theme and totally use the CSS that I specify?
Well, you can be radical and just remove the CSS files that are in the com.google.gwt,user.theme.chrome/dark/standard packages (don't forget to remove then from the gwt.xml file). Then specify your own CSS....disadvantage is that you have to style absolutely everything yourself. Hope this helps.

Resources