Click here to Skip to main content
15,889,216 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
how to restrict the css style in child page which is available in master page?
Posted
Comments
fjdiewornncalwe 18-Oct-12 12:23pm    
I think that the question you should be asking is, Why do I have a conflict in your styles? If you need a different style in a child page, then you should maybe just create a new style for that page instead of trying to override an existing one.

One way is to override the style. Overriding is about precedence: do your research on Google and you will find the answer.
 
Share this answer
 
As I can understand you have two css. One for master page and other for child pages. And you want to disable the style of a particular element in a child page.
There are two cases of this problem.
FIRST:- You want to use the style defined in maste page's css in all child pages, then remove the style entry for that element from the css file that is defined for the child pages.
SECOND:- You just want t restrict the style only in one particular page. Then in that case you have to either provide the inline style or mention the style in the header contentpalaceholder, having same style defination as that in the master page's css file. As these have higher priority then the linked css files.
Warm regards.
Vikas Verma
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900