Skip to content
View in the app

A better way to browse. Learn more.

Web Designer Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

NAV centere help :(

Featured Replies

Hey guys just about finished my first website for a client but I have no idea how to centre my navigaiton bar to make the page look better. I have tried every different styling I can think of but cant get it to budge from the left of the screen.

 

Any help would ne greatly appreciated thank you for reading

 

http://www.illusionoffear.co.uk

Your #nav has fluid width: 100% and min-width so try to use the example in item 4 here:-

http://www.wickham43.net/dropdownmenus.php

 

which centers a menu in a fluid width.

 

You need a container with no width (to be flexible) and with overflow: hidden;

 

then your #nav needs

float: left;
position: relative;
left: 50%;

 

then the #nav ul needs

position: relative;
left: -50%;
margin: 0;
padding: 0;

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.