This article illustrates how to create a custom helper for ASP.NET MVC to use in views that surrounds a block of markup.
I thought it would be fun to try my hand at producing a similar effect as the Visual Studio 2012 installer working/busy animation using pure-CSS. I think it turned out pretty well, it works in Opera, Safari, Chrome and Firefox.
The styles are compatible with the latest Chrome, Firefox, Opera, Safari as well as IE9. They also degrade gracefully by simply not displaying the popup to IE8 and below.
This post will give a brief overview of some of the lesser known keywords in C# (as-implicit). I’ll cover more in later posts.
If you didn’t know, HTML5 introduced a new input type ‘date’ which allows the client to support it natively.
Here is a method for selecting a column in a table using the selector
:nth-child(n). You could then do whatever you want to it, like hiding or highlighting it. An example use could be showing that a particular column has been sorted, instead of the more traditional method of showing some indicator on the header.
I had a problem a while back where an IIS 6 server was not serving .docx extension files even though they were definitely there on the server. I immediately thought that the .docx MIME type must not be included in IIS 6 by default and it turns out that was the cause of the problem.
The difference between pseudo-classes and pseudo-elements can be a little confusing until you have it spelt out for you. Basically a pseudo-class is a selector that assists in the selection of something that cannot be expressed by a simple selector, for example
:hover. A pseudo-element however allows us to create items that do not normally exist in the document tree, for example ``::after`.