I am trying to design my disabled selection box in IE7.
& lt; Div id = "wwctrl_pay" class = "wwctrl style-selection" & gt; & Lt; Id = "payment" & gt; & Lt; Options & gt; ... & lt; / Options & gt; & Lt; / Select & gt; & Lt; / Div & gt; How can I change the CSS of the #wwctrl_pay if the selection box has been disabled? Can I use CSS?
If you ignore some additional markups and other limitations:
& lt; Div id = "wwctrl_pay" class = "wwctrl-style-select" & gt; & Lt; Id = "payment" disabled = "disabled" & gt; & Lt; / Select & gt; & Lt; Div & gt; & Lt; / Div & gt; & Lt; / Div & gt; CSS:
.wwctrl {status: relative; Border: 1px solid blue; } Choose [disabled] + div {status: absolute; Z-index: -1; Top: 0; Left: 0; Width: 100%; Height: 100%; Background: yellow; } a???? Alternatively, if it is only for IE7, then you can use IE's proprietary CSS expression feature.
Comments
Post a Comment