how to tell browser then recognize my stylesheet first then the framework i use?
I use blueprint and browser recognize them first and not mine if they have something.
how i can do something then开发者_C百科 browser recognize the style-sheet of mine first then they try to use them in page.
i know i can use !important but it's not good that i put !important on every tag. are their any hack to apply my stylesheet first even blueprint have some for them.
It sounds like you may be using stylesheets in the opposite order of what you want. If you want your styles to be in effect instead of the styles from the frameworks you are using, list your stylesheets after the other stylesheets. Ideally, your stylesheets will be listed last. That's the effect of cascading for stylesheet rules.
Stylesheets are applied in order of appearance, just insert your css after those of the framework.
Browsers have specificity rules that determine which style is applied. If you have multiple external stylesheets, the easiest way to ensure that your desired styles are applied is to load your stylesheet after the Blueprint stylesheet. Any style rules defined in your stylesheet will override the Blueprint styles.
精彩评论