.NET Tips and Tricks

Blog archive

Use Find Definition with CSS Class

Simplest tip ever: Use Visual Studio's Go To Definition with CSS classes to get from your HTML to the relevant CSS rule. First click on the name of a class in your HTML:

<div class="error" …

Then press F12 (or right-mouse click and select Go To Definition) and, voila, you're in the right style sheet with your CSS class rule selected. It also works with the CssClass attribute:

<asp:Label  ID="BodyContent"   cssclass="error" …

Posted by Peter Vogel on 02/26/2013


comments powered by Disqus

Featured

Subscribe on YouTube