skip to content
Alvin Lucillo

CSS adjacent sibling selector and Midsommar

/ 1 min read

💻 Tech

In CSS, you can select an element that is next to another element using the + selector. For example:

.error + textarea, .error + input {
    border-color: #53140d !important;
}

The code above will select the textarea and input elements that are next to an element with a class of error and apply the border color to them.

🎬 Movie

Recently, I watched “Midsommar”. It’s a folk horror film that is set in Sweden. If you prefer Hollywood-style horror films that are formulaic with jumpscares and theatrics, you may not feel satisfied. It’s dark and enigmatic, and you need to pay attention to the characters and the details to fully appreciate the film. It feels like the film is a metaphor for the intricacies of relationships and trauma.