I have a mix of css in themes and universally (non theme specific) files. I would like the theme css files to be included first before my custom css files - how can this be done (see below, the StyleSheet.css file is a theme file which is always included last, I want it included first)
<!-- CSS needed on every page --> <link rel="Stylesheet" type="text/css" href="App_themes/PageLayout.css" /> <link rel="Stylesheet" type="text/css" href="App_themes/EmbedFonts.css" /> <!-- CSS placed by ASP.NET --> <link href="App_Themes/DarkTheme/StyleSheet.css" type="text/css" rel="stylesheet" /><title>
Note: I am using master pages with themed Web forms.
preguntado el 30 de enero de 12 a las 19:01
EDIT: Since you're only using themes to pull CSS, use Page property StyleSheetTheme instead of Theme. That should render your theme CSS links first instead of last, making them overridable. This was confirmed in la respuesta de esta pregunta.
Este artículo de MSDN explains the difference between the two properties, alluding to how the stylesheet links would be rendered.
Espero que esto ayude.