Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS How to fit the menu bar and footer in any size of laptop and pc? Reply To: How to fit the menu bar and footer in any size of laptop and pc?

#171564
Paulie_D
Member

Could you make a Codepen.io example please instead of a codedump?

However, you need might start with remove the width of 80% from .main-navigation and moving it to .main-navigation ul.

Then center .main-navigation ul by changing the margin to margin: 0 auto;

This will make the navbar 100% wide but still maintain the width of the ul inside it.

Is that what you meant?

Otherwise, you’ll have to look into media queries.