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
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
*using navigator.userAgent can make you vulnerable to spoofing. Here is a lengthy article.
jQuery 2.0 Release Highlights
- Drops support for Internet Explorer 6, 7 and 8
- 12 percent smaller for increased performanc
- Custom builds for even smaller files
- jQuery 1.9 API equivalence
This vertical menu knows how far to animate by getting the width of the div it’s located within.
This tutorial shows snippets, explanations, and there is also a demo.
Here is the basic concept:
Total Width – Anchor Text Width = Movement Width Continue reading
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,