In my project we have one global CSS file 'global-css' which is used in all the webpages of website. This file contents,
font-size: 100%;
font: inherit;
properties for body,div,h1,h2 etc.
Link from where above code is copied http://www.cssreset.com/ - Eric Mayur's.
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
........, audio, video {
margin: 0;
padding: 0;
border: 0;
***font-size: 100%;
font: inherit;***
vertical-align: baseline;
}
I don't have rights to edit this(global-css) CSS file.
But this 2 lines are creating UI issues on my webpages. If i remove this 2 lines from 'global-css' then my webpages works totally fine(without any UI issues). I Somehow want to override this 2 lines into my own CSS file (which will be imported in my webpages only). I have created 1 CSS file(override-css) where i can override any class from 'global-css'.
Kindly suggest good way to override the above properties in my 'override-css'.
Thanks for the help :)
To clarify: I want to set these properties to DEFAULT/NULL so that all elements will take the font from their respective classes.
I tried to override above code in global-css
but unfortunatly we dont have default value for font
property.
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
........, audio, video {
margin: 0;
padding: 0;
border: 0;
***font-size: ________ !important;
font: ________ !important;***
vertical-align: baseline;
}
I want some property value to reset this 2 properties in ss-override.
There is one more 'main.css' CSS file which contains all the classes for elements. But these two lines from 'global-css' are not allowing to apply this styles.
The sequence used for importing CSS is : main -> global-css -> override-css.