What is the right way to insert inline server tags on a page's css section?

hovsbpixni

New Member
I'm trying to put some inline server tags on a page so I can get the right path for an image, using Visual Studio 2012.I'm doing it like this:\[code\]<style type="text/css">.someclass{ background-image: url(<%=Url.Content("~/Content/Images/messageIcon.gif")%>);}</style>\[/code\]The problem is that once this is written, the wholw style section loses the color formatting withing the VS2012 editor. Is tyhere a different way to do this (or an option in VS2012), so that I won't lose the colors and the indentation?
 
Back
Top