web-tricks.org


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

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

Tags: 

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!
Tags: 

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

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

Tags: 

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:

Tags: 

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

Tags: 

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

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

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

×

Hey! Don't miss a new cool stuff!