Hello NC! 

If you have a floating Ning bar, you will love this. This code will give your Ning bar a shadow effect so that it looks like its actually floating above your network's content, not just scraping your content when it follows your screen. 

Add this to your Advanced CSS:

#xn_bar {
position: fixed !important;
top: 0;
left: 0;
z-index: 9999;
bottom: 0;
-moz-box-shadow: 3px 3px 8px #dadada;
-webkit-box-shadow: 3px 3px 8px
#4d4d4d;
box-shadow: 3px 3px 8px
#4d4d4d;
padding-top: 0;
}

Enjoy the hover!

Tags: Ning, bar, hover, shadow

Views: 525

Reply to This

Replies to This Discussion

Great!

Thanks a lot!

BTW, anyone know why YouTube videos are on ning bar, even though the z-index has been defined as 9999?

There are how to fix this?

One detail: in IE and Firefox the video is below the bar, only in Google Chrome is over.

Worked fine for my network, tested on Safari, Firefox and Chrome. 

Maybe due that I don't use flash content as Glenn alerted.

This happens in chrome always when there is adobe flash content on your network. It happens to me 2! :(

Nice, code added to my site! Thanks for sharing it!

what's a floating ning bar?

Thank you Alessandro, but I don't get it. Isn't the ning bar already positioned or floating at the top? Isn't that standard?  Take a look at my site and let me know. www.socalsocialclub.com

Yes, the position of Nig bar at top is standard. The tip of this post from Glenn Lynch with the code he posted is to have a shadow at the bottom of this Ning bar. I noticed your site has a black background, maybe the reason that you didn't notice the shadow.

You may trying working with other colors, changing the hex code #4d4d4d to another one, but I'm not sure you will get a cool effect with other colors.

I've got two questions:

  1. How did you put some links on the floating bar?
  2. When i put this code to make it floating..it is positioned a little bit over my header image..how can i correct that? 

Thank you!

1. I used the following tip to move the account box to the floating bar: 

http://creators.ning.com/forum/topics/add-member-account-box-links-...

There's also this other interesting tip to put links in the floating bar:

http://creators.ning.com/forum/topics/add-links-to-ning-bar-1

2. Maybe you'll be able to adjust the bar position changing one of these values from the code of this post:

top: 0;
bottom: 0;
padding-top: 0;

lol Alessandro, What code did you use for the buttons start and return to the top? very very cool! Greetings

RSS

Latest Activity

Troy Marquis replied to Andrew Sanderson's discussion 'Video chat for ning network'
"skysa"
1 hour ago
Ambroise favorited Eric Suesz's page Ning 3.0 Roadmap
2 hours ago
Ambroise commented on kid k's group 'Ning French Networks'
"Dans le menu, il y a marqué Ning 3.0 lol"
2 hours ago
Jean-Christophe Fa(u)dot commented on kid k's group 'Ning French Networks'
"En ce qui me concerne, c'est à peine si je sais que Ning 3 existe ou va exister !…"
4 hours ago
SM replied to SM's discussion 'How to Target the First Page of your Site with CSS'
"Hi Suzie, here is the code you need to put into your bottom custom code box in the design center…"
5 hours ago
Kos replied to SM's discussion 'How to Target the First Page of your Site with CSS'
"ahhh now that makes sense.  Thanks for clarifying :)"
6 hours ago
Strumelia replied to FedMedic's discussion '3.0 Why is all my text centered?'
"Thanks so much, and please DO let me know what their support team is like, when you first make use…"
7 hours ago
SM replied to SM's discussion 'How to Target the First Page of your Site with CSS'
"Hi Suzie, I'll try to post something more logical with screen shots. But, you'll see -…"
7 hours ago

© 2013   Created by Ning.

Badges  |  Report an Issue  |  Terms of Service