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.

CSS Horizontal nav bar position help!

Featured Replies

I've got myself a nice green nav bar for a webpage im building. However there's a DIV on the page in green that id like this nav bar to fit in...

 

The thing is i cant same to get it to budge at all, even with position fixed... id like it to sit in the DIV ive made thats coloured green.. so i can then move it left right or centre as i need it... using padding

 

thanks for looking...

 

http://connordesign.comyr.com/build/index.html

You seem to have pretty much achieved what I've been trying to do for the last couple of days, namely you have a nested horizontal over a sliding banner. Nice one! As for your problem are you on about centering it? These links may be of some use to you. The first few are for Spry ( i don't know whether you want to go that way but good heads up) and a neat menu. Hope some of this will help.

 

http://foundationphp.com/tutorials/sprymenu/customize1.php

 

http://library.creativecow.net/articles/williams_richard/spry_menu_explained.php

 

http://csswizardry.com/demos/centred-nav/dropdown.html

  • 2 weeks later...

.navbar {

float: left; <-- Remove

height: 27px;

margin: 0 auto;

width: 680px;

margin-top:20px;

}

 

After making these changes your menu in center of the screen. You may change width if you decrease padding/margin from left side.

 

Hopefully, it will help you. Please reply if you have any difficulties.

Edited by Hem

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.