CSS Menu with full width of parent container

Here's an easy way to make your navigation items stretch to the full width of the container (nav) evenly.

It doesn't matter what the parent container width is, you want the items to use the full width.

CSS Menu with full width

HTML markup

CSS Tables

I know what you're going to say but I've found that this method has great browser compatibility. It just works.

View Demo

About Rick

Senior Front-end Software Engineer from Barcelona, Haidong Gumdo Instructor (korean martial art of the sword), street photographer, travel lover, TV addict, Boston Red Sox fan, and privacy advocate.

Leave a Reply

Add <code> Some Code </code> by using this tags.