hello.js

var please = require('share');
console.log('thank you');

NEW !!!

Friday, 26 November, 2021 UTC

Screencast – building a fully responsive layout in 4 minutes by using the CSS grid

I've received quite a lot of feedback for the Making a responsive CSS grid layout with just 3 properties article published a few weeks ago. So I've decided to record a small screencast with that content in action. Hope you like it: ... more


Thursday, 25 November, 2021 UTC

Links, ideas, news roundup #5

A few more weeks have passed and some links to some cool stuff have started to pile up in my bookmarks. So, let's see: On the Code with Jason podcast found a great conversation between Jason Swett and Peter Cooper about building a successful career by ... more


Tuesday, 23 November, 2021 UTC

Stacking elements on top of each other with CSS grid

Even dough I don't believe the CSS grid was designed especially for stacking elements one on top of each other this can be achieved easily with a combination of grid-area and z-index . Let's say we want to build the below widget. This can be described ... more


Tuesday, 23 November, 2021 UTC

What is an executor function for a Javascript promise?

We can pass an executor function to the constructor of a Javascript native promise. It takes two parameters: the resolve and rejects callouts of that promise: new Promise( () => {...} ).then ( ... ); Based on our needs we can customize the behavior ... more


Friday, 19 November, 2021 UTC

Getting the value of the content property of ::after or ::before with Javascript

Let's say we have the following CSS declaration: #myElement::before { content: " <- Javascript is cool!"; color: green; } We want to be able to read the value of the content property. The " <- Javascript is cool!" string. In ... more


Thursday, 18 November, 2021 UTC

The grid layout: the grid-column and grid-column properties are using line numbers

When placing elements in a CSS grid it's very important to remember that the grid is using the lines number to place the elements. Take for example the following layout. For the columns, we have 4 lines . So, for the footer element when we are declaring ... more