Main menu

In CSS, selectors are patterns used to select the element(s) you want to style. If you are looking for a CSS wildcard or CSS Regular expression then what you might be trying to find is a CSS Attribute Selector. Continue reading →

Share this:

This tutorial will show you how to make the ASP.NET forms authentication work with SQL Server using the provided ASPNETDB.MDF file. Then it will show you how to properly configure your web.config file to use it. *Note – This tutorial will help if you are having trouble getting your forms based authentication to work in… Continue reading →

Share this:

There are several tutorials on how to make things “sticky” using CSS. We will make a “sometimes sticky” element using CSS and jQuery. Here is an article on CSS sticky footers to help you understand before we move onto the “sometimes” part using jQuery. Continue reading →

Share this:

There are several tutorials on how to make CSS sticky footers, sticky headers, and sticky sidebars. This is one. There is a working demo to check out.

Remember to compensate at the bottom of your page. If your sticky footer is 75px high, add 80px padding or margin so that the sticky footer doesn’t cover the content at the bottom of your page. The 2 main CSS elements for the sticky footer are position: fixed; and bottom: 0px;

The important thing to understand about position: fixed; in a sticky footer is that it’s in a fixed position relative to the element or “container” it’s in. Continue reading →

Share this:

Here we examine why you would use a protocol relative URL. Have you ever had this error in ie – “This page contains both secure and nonsecure items?” A protocol relative URL may also be called a “network-path reference” or “scheme-relative URL.” If your page is through HTTPS protocol, then it will request the assets be through HTTPS protocol also. If an asset is requested through HTTP on an HTTPS page it will throw an error. The error is “This page contains both secure and nonsecure items” error. This is where the protocol relative URL can help. Continue reading →

Share this:

Two of the three javascript window location object methods seem to do the same thing. They do not. The window location methods are assign(), reload(), and replace(). The reload() method does what you think. Both assign() and replace() appear to simply open a new page. So…Uhhh….. What’s the difference between javascript location.assign() and location.replace()? It… Continue reading →

Share this:

Javascript window location object properties contain information about the current URL. We will use an example URL: http://www.domain.com/subdirectory/search?filter=a#somewhere. Then we will see what each property returns. For example location.pathname returns “/subdirectory/search.” Continue reading →

Share this:

This tutorial will show how to use jQuery append. It will also show how to append after and append before. Append actually means to add after. But this will show you how to use jQuery to insert content with these four functions. Continue reading →