```
let swipeableArea = document.querySelector(" #myDiv")

swipeableArea.addEventListener("swipeUp", handleSwipeUp)

function handleSwipeUp(event) {
// do stuff
}
```

would be great. That doesn't exist, am I right? Are there recommended libraries? 🤔

#webdev

@29decibel I think this is the correct link: https://www.joshwcomeau.com/css/center-a-div/

Just from the top of my head...

```css
#mydiv { margin: auto }
```

```css
:has(> #mydiv) {
display: grid;
place-items: center;
}
```

```css
:has(> #mydiv) {
display: flex;
justify-content: center;
align-items: center;
}
```

```css
#mydiv {
position: absolute;
top: 50%
left: 50%;
transform: translate(-50%, -50%)
}

... Now I'll go read the article myself and compare notes 😁
#CSS

How To Center a Div • Josh W. Comeau

Back in the day, centering an element was one of the trickiest things in CSS. As the language has evolved, we’ve been given lots of new tools we can use… But how do we pick the best option? When do we use Flexbox, or CSS Grid, or something else? Let's dig into it.

How forests smell – a risk for the climate?

How forests smell – a risk for the climate?

Artenreiche #Wälder könnten helfen, das #Klima stabiler zu machen > https://www.tropos.de/aktuelles/pressemitteilungen/ / @UniLeipzig @TROPOS_de @idiv #Biodiversität #Wald #Klimawandel #Emissionen @H_Herrmann24 #MyDiv #BadLauchstädt @EisenhauerLab @dfg_public @SMWK_SN @ERC_Research
https://nachrichten.idw-online.de/2023/12/13/der-duft-der-waelder-ein-risiko-fuers-klima_1
Pressemitteilungen