CSS Hack: Detect an updated CSS (or JS or image files) and override cached version Discussion of original solution is here: https://stackoverflow.com/questions/118884/how-to-force-the-browser-to-reload-cached-css-js-files The rewrite rule in htaccess: RewriteEngine on RewriteRule ^(.*)\.[\d]{10}\.(css|js)$ $1.$2 [L] The PHP function: /** * Given a file, i.e.
Aligning image elements vertically within a div Echoed from: https://www.tutorialrepublic.com/faq/how-to-vertically-align-an-image-inside-a-div-using-css.php You can align an image vertically center inside a <div> by using the CSS vertical-align property in combination with the display: table-cell; on the containing div element. Continue Reading →
Disabling User Content Selection on a Web Page Using CSS:Use the user-select property to disable the text selection. Continue Reading →
Responsive Web Design Guides (WIP) A basic intro by W3Schools is here: https://www.w3schools.com/css/css_rwd_intro.asp It will give walk you through the rationale and the process step-by-step and build your know-how progressively. Continue Reading →
Appending DOM Elements Dynamically I couldn’t be sure whether it was fine to add pseudo-selectors for an element inline so I consulted Google. Continue Reading →
Media Queries Dev Tool Echoed from: https://gedd.ski/post/working-with-media-queries/ As I was working on a site that had a lot of quirky stuff going on such that making it mobile responsive is starting to become a PITA. Continue Reading →
WordPress Finds Normalize.css Normalize.css is a small CSS file that provides better cross-browser consistency in the default styling of HTML elements. Continue Reading →
CSS and Retina Echoed from: https://www.sitepoint.com/css-techniques-for-retina-displays/ As many people use their highly portable devices for work and play, device manufacturers seek to enhance their user experience, making their devices simultaneously more powerful and easier to use. Continue Reading →
Page speed optimization tips Echoed from: https://moz.com/blog/optimizing-page-speed-actionable-tips-for-seos-and-web-developers Optimizing Page Speed – Actionable Tips For SEOs and Web Developers by Ed Baxter As I’m sure many of you well know, page speed has become a factor for ranking in the search engines. Continue Reading →
Custom browser cursors There are a lot of articles on the web that deal with basic intros and how-tos. Continue Reading →