I am trying to mobilize a webpage. I to keep most of the current styles, but I also want to either override, or remove other styles. I know !important will override a style, but what if I just want to remove that specific style completely for the current page without removing it from the style sheet?
For example, what if I wanted to remove width or min-width from an element's style, but I did not want to specify another width. I am using jQuery Mobile, which takes care of a lot of those styles.
In this example I would have the files Styles.css and StylesMobile.css, where Style.css would have the following:
.buttonStyle {
width: 100px;
text-align: left;
}
while StylesMobile.css has:
.buttonStyle {
height: 10%;
color: Red;
}
I still want the text-align: left; from Styles.css, but not the width (along with the StylesMobile.css).