↧
Center Div in CSS
I hate CSS with passion. How many fucking steps do you need to take to make things aligned in the center of a container? You need to make sure your outside container is set to the required width....
View ArticleRazor view: conditionally include debug versions of JS libraries
In Razor compiler directives do not work, cause Razor Views are not compiled. So this would not work: @{ #if DEBUG} @{#else} @{#endif} But you can trick that thing into submission, thanks to this...
View ArticleCreating custom Html Helper in MVC3
Creating custom attribute is pretty simple really, just follow the example. You need to return MvcHtmlString – that is string with your html to be displayed on a page – this will not be escaped. public...
View Article