Discovering fascinating code snippets across the web is a common occurrence for me. On this page, I stash all the good stuff that I find. Focus will be on HTML, CSS, and JavaScript, but also other areas from the wonderfull world of web development. Put on your best shirt and go to town.
![](https://www.klohse.dk/wp-content/uploads/2024/03/Margin-Block-Auto-featured.jpg)
![](https://www.klohse.dk/wp-content/uploads/2024/03/Margin-Block-Auto-featured.jpg)
Neat trick with flex box and margin block auto
Margin-block-auto can be a smart way to work faster and smarter with flex box elements. It […]
See project![](https://www.klohse.dk/wp-content/uploads/2024/03/Nth-of-type-1.png)
![](https://www.klohse.dk/wp-content/uploads/2024/03/Nth-of-type-1.png)
Quick look at nth-of-type
The nth-of-type selector allows you to select elements based on their position within a parent container. […]
See project![](https://www.klohse.dk/wp-content/uploads/2024/03/Display-grid-2.png)
![](https://www.klohse.dk/wp-content/uploads/2024/03/Display-grid-2.png)
Grid and min max width in CSS
Creating responsive layout can sometimes be tricky. There are many scenarioes you have to take into […]
See project![](https://www.klohse.dk/wp-content/uploads/2024/03/full-width-of-element-inside-container-featured-1.png)
![](https://www.klohse.dk/wp-content/uploads/2024/03/full-width-of-element-inside-container-featured-1.png)
Make child element break out of parent container
I came across a cool feature in CSS where you can apply box-shadow and clip-path to […]
See project