How can i restrict one part of the code in html without getting affected by css without modifying .css file. It;s like disabling style changes for the particular block in html. i need to do for a div.
How can i restrict one part of the code in html without getting affected by css ?
It isn't possible. If a style matches an element, then it gets applied unless overridden by another style that sets the same property to a different value.
Reply:You can override the stylesheet by applyig the style directly to the element:
%26lt;div style="font-size:1.25em;other attributes..."%26gt;
any attributes declared inline will override the values set in stylesheet. The other method is to use scripting to dynamically modify the attributes at laod time, but it is a lot more coding and work.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment