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
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
*using navigator.userAgent can make you vulnerable to spoofing. Here is a lengthy article.
With so many devices able to access the internet, responsive design is becoming a necessity. Smart phones, tablets, laptops, and desktop computers have different viewable areas. Viewport is the window size of the device. We’ll use jquery width and resize functions to get the window width of the screen thus aiding us in our Responsive Design. Continue reading
To get jQuery to work,