My Blog 160 posts

notes & snippets
How to remove www. prefix in IIS
1. Install UrlRewrite extension

iis.net/download/urlrewrite

2. Edit Web.config
<system.webServer>
<rewrite>
<rules>
<rule name="CanonicalHostNameRule1">
<match url="(.*)" />
<conditions>
<add input="{HTTP_HOST}" pattern="^yourdomain\.com$" negate="true" />
</conditions>
<action type="Redirect" url="http://yourdomain.com/{R:1}" />
</rule>
</rules>
</rewrite>
</system.webServer>

http://stackoverflow.com/questions/4882508/how-to-remove-the-www-prefix-in-asp-net-mvc
Vertical Centering in CSS
Definition of the problem
there is an area (e.g. &lt;div&gt;) with known height in the page
an internal object (typically long text in &lt;div&gt;) is inside the area and I don't know its height (e.g. because its content is dynamically generated from a database)
I want to center the object vertically within the area
without using HTML tables.

http://www.jakpsatweb.cz/css/css-vertical-center-solution.html
« 11