Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8262355
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T03:43:54+00:00 2026-06-08T03:43:54+00:00

I have a CSS file on a master page( mpcss.css ). On one of

  • 0

I have a CSS file on a master page(mpcss.css).
On one of the content pages I need a totally different style set for most of the controls.
Here I created a new CSS file named contentcss.css and included it in the content place holder:

<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
    <script src="JQuery/jquery-1.7.2.min.js" type="text/javascript"></script>
    <link href="Styles/ssjquery.css" rel="stylesheet" type="text/css" />
</asp:Content>

But still the CSS from the master page is overwriting the local CSS. How do I fix this issue?

EDIT: I do not have inline styling. I have 2 different CSS files, mpcss.css and contentcss.css:

CSS on masterpage

<head runat="server">
    <link href="~/Styles/mpcss.css" rel="stylesheet" type="text/css" />
</head>

CSS on content page

<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
    <script src="JQuery/jquery-1.7.2.min.js" type="text/javascript"></script>
    <link href="Styles/contentcss.css" rel="stylesheet" type="text/css" />
</asp:Content>
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-08T03:43:55+00:00Added an answer on June 8, 2026 at 3:43 am

    CSS as the name suggests is cascading, meaning that whoever comes last will override the rest.

    So, if you have two css files:

    <link href="Styles/master.css" rel="stylesheet" type="text/css" />
    <link href="Styles/newone.css" rel="stylesheet" type="text/css" />
    

    in that case newone.css rules will override the master.css rules.

    Please note, that if you have inline styling (i.e. style tag in the html itself) css cannot override these values.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have Master page and some content pages. I want to assign different css
I have a Master Page which has an associated css file. On one of
I would like to have two .css files. One for each master\content page and
I have a master page with a .css file with some instructions. Then i
Problem: I have a master page dictating the css, html, head, body content so
I have a CSS file, which contain the style information of my web. Some
I have a HTML/CSS File laid out with a bunch of areas that need
In my application I have next problem. I created master page and some content
On my master page (for all pages in my site) I have a ToolkitScriptManager.
I have a web forms app with a CSS file for layout. One of

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.