Web Development tips and tricks: PHP, CSS, JavaScript, HTML, Drupal

The simple slide mobile menu example using HTML, CSS and simple JS.

How to add a video in a html background - muted and loop.


I've spend an hour to understand how to render user login form and user register form in Drupal 8 to print them in a custom place.
Here is the solution.

Making one of the block sticky within its parent (or body) is not a painful thing anymore.
Just use CSS position: sticky and you'll be happy!

Check this out:


A short note how to replace your checkbox with an image.


Here's a collection of working solutions how to center content inside DIV horizontally and vertically (multiline text, image or anything) using CSS.

This is an easy way to create a sexy loading throbber image without image using only CSS!

All common Drupal 7 database examples here: select, update, delete, insert, join, filter, sorting, limit etc.

The easiest way to simply send email in Drupal programmatically.


Hey! Don't miss a new cool stuff!