The Coding Humanist

Archives: 6/2011

Auto Page-Specific Css with ASP.NET MVC

-- Filed Under: CSS, ASP.NET MVC
Comments: (0)

As a developer who wants to be conscious of good client-side practices, I’m always looking for good ways to keep my Css separate from my Html. When there are page-specific css styles to apply, it is often tempting to add them to the page itself. It works, it's not evil but I wouldn’t recommend it. Here’s an easy trick I have used on several projects to make it easy to target page-specific design problems in a global css file without worrying about adversely affecting other pages.

Read More on "Auto Page-Specific Css with ASP.NET MVC" >>