Forums

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

Home Forums CSS Navbar won´t center properly and website gets destroyed while zooming Reply To: Navbar won´t center properly and website gets destroyed while zooming

#286322
uxfed
Participant

Hi, since you’re new to HTML/CSS I’d suggest you look in to CSS media queries. You’ll need to do different things based on screen width and media queries are the way to do it. You may want to use more padding for your links at wider screen widths and vice-versa at smaller widths.

On mobile you may want to toggle the menu with a button and have the menu items stack. There are loads of JavaScript examples online to show you how to do the toggling, but again, that stacking of the links will be media queries again.

I personally usually use Bootstrap navigation so that may be something to compare your implementation to.