Tag: css

Negative margin and grid layout in CSS

Some time ago, if developers wanted to layout the page, they generally had two options. Either use some hacky solution made of many floating elements or use the HTML <table> element. Both approaches had their fair share of problems. These times are fortunately gone and toda…

Using CSS selectors on Markdown in JS

It is possible target specific elements in a DOM via CSS using selectors h2 { /* property: value; */ } It is also possible to use CSS selector in JS DOM const elements = document.querySelector("h2") With the advent of a JAMstack it is also possible to target Markd…