Nowadays when you want to build a website, the first thing that comes to mind is to choose a framework. Assumed that you have already chosen AMP as your stack of choice (Apache + MySQL + PHP), the most popular frameworks out there are Laravel, CodeIgniter, Slim and probably WordPress (if you consider it as…
Month: February 2023
Disabling CSS Hover Appearance on Mobile
We all know that hover events don’t really work on touch screens because there’s no cursor. When you touch a button with hover appearance or animation, your phone will emulate the hover behaviour, and does nothing. It’s when you touch the second time, only the button will do what it should do. This may slow…
3 Ways to Centralise Elements Vertically in CSS (2023ish)
One of the most frustrating stuff to do in CSS is to centralise something vertically. Most of the methods we know and tried are kind of ‘hack-ish’, but I’m going to list them out anyway. Let’s assume that we have a little box (#content) that should be placed at the centre of a full-screen box…
Force Toggling a CSS Class
One of the things I found pretty useful when dealing with Bootstrap theme is the ability to force toggle a CSS class with Javascript. Let’s say, you have a select menu with ‘Other’ option, and you would like to display a text input when ‘Other’ is selected: Instead of using if-else statement to show or…
Restoring Adobe Illustrator ‘Film & Video’ Preset to Your Regular Canvas
Have you started your project with a preset in ‘Film & Video’ and got all confused? Here’s how to configure your document back to the ‘original’ state that you have always been working with: 1. Remove the Second Artboard Go to the Artboards panel, select the second artboard (Artboard 2) and click the bin icon….