Site logo

Archived topic

Navigation bar question

4 replies · Started by ballerinamoose on February 9, 2022

Viewing posts 1–5 of 5

What's the best approach to get a navigation bar to look like this? It is slightly wider than the rest of the content, with a little bit of flair on either end. Unfortunately, I don't have a live example.

sample navigation bar

I'm thinking of maybe defining the width of inside-navigation as larger than the rest of the elements in the grid-container, and setting a background image on inside-navigation... would that work?

Or would it be better to use a header element somehow?

Thanks for your help.

Ah, thank you! That worked for the width... how would I get the two little triangles in the lower corners (below the bar--they give the illusion of a shadow)?

Never mind, I discovered I could approximate the look I was going for by using the box-shadow property on the nav#site-navigation element.

Thank you! :)

Glad you figured it out :)

This archived topic is closed to new replies.