Quantcast
Channel: Active questions tagged flexbox - Stack Overflow
Viewing all articles
Browse latest Browse all 1307

Aligning three menu elements to the center of the screen, and a logo staying in the top left isn't working for me [duplicate]

$
0
0

I am using tailwindCSS. What I'd like to do is create the traditional nav we've all seen minus a third element. So the header, or "logo" would stay in the top left. The three menu items should be in the center of the nav.

I have tried many things, and asked chatGPT, and a couple discords. Nobody's solution is working. The text for my links always appears just slightly off from the center, I even measured.

I would like to avoid absolute positioning if possible, as I want it to remain mobile responsive. Adding a third element mostly fixes the problem, however it still appears slightly off kilter.

Grateful for any help.

<h1>Nathaniel Reeves</h1><div class="flex gap-3 mx-auto"><a href="#">Services</a><a href="#">My Work</a><a href="#">The Process</a></div></nav>```

Viewing all articles
Browse latest Browse all 1307

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>