Click here to Skip to main content
14,607,026 members
Rate this:
Please Sign up or sign in to vote.
See more:
how to restrict the css style in child page which is available in master page?
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.
Rate this:
Please Sign up or sign in to vote.

Solution 1

One way is to override the style. Overriding is about precedence: do your research on Google and you will find the answer.
Rate this:
Please Sign up or sign in to vote.

Solution 2

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

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

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100