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?

#171618
Paulie_D
Member

Yes, i specified the width, but when I view the site in a large monitor, the menu bar and footer is become wider

Well of course it does!

width: 80%; means exactly that…80% of the monitor width. What else did you expect?

If you want to maintain a fixed width you have to define it in a px related property (px, em, rem etc.).

Actually, you could define the fixed value as a max-width and still use a % width generally and have the best of both worlds.