DEV Community

Dumte Nwidoobee Joshua
Dumte Nwidoobee Joshua

Posted on

1

Full background-color that will take the full width on hover

How can I style my hoverable background color to take full width in a display:flex styling?

I have a navigation link nested in a div class, on hover, the background-color is only around the text content. I want it to take the full width since the display is given a flex-direction of column

Top comments (0)

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more