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

Here is the simple example how to create custom node token in Drupal 7.


The easiest way to blur text with css is to use transparent color and use text-shadow:

.blur-me {
   color: transparent;
   text-shadow: 0 0 5px rgba(0,0,0,0.3);
This text is blurred!

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.


Hey! Don't miss a new cool stuff!