Current status of the Ning Platform is always available on the Ning Status Blog.

NC for Hire

Make the Avatars on your home page stand out. Add a thin frame border around your home page member avatars, and a nice shadow in FF.

This CSS will add a thin border and a little padding around your home page avatar images. It will include the member avatars in blogs, forums, latest activities, members, and for any avatar. It also adds a very subtle color when the avatars are hovered.

See it in action on JenSocial home page.

/*** Shadow and Hover Effect for Avatars on Home Page ***/
.xg_widget_main .xg_avatar img {
    padding: 1px;
    border: solid 1px #ffffff;
}
.xg_widget_main .xg_avatar img {
    border: solid 1px #CCC;
    -moz-box-shadow: 1px 1px 5px #999;
    -webkit-box-shadow: 1px 1px 5px #999;
        box-shadow: 1px 1px 5px #999;
}
.xg_widget_main .xg_avatar img:hover {
    border: solid 1px #e6e6e6; /* Change this color for more distinctive hovered border */
    -moz-box-shadow: 1px 1px 5px #999;
    -webkit-box-shadow: 1px 1px 5px #999;
        box-shadow: 1px 1px 5px #999;
}

.xg_widget_main img.feed-avatar {
    padding: 1px;
    border: solid 1px #ffffff;
}
.xg_widget_main img.feed-avatar {
    border: solid 1px #CCC;
    -moz-box-shadow: 1px 1px 5px #999;
    -webkit-box-shadow: 1px 1px 5px #999;
        box-shadow: 1px 1px 5px #999;
}


.xg_widget_main img.feed-avatar:hover {
    border: solid 1px #e6e6e6; /* Change this color for more distinctive hovered border */
    -moz-box-shadow: 1px 1px 5px #999;
    -webkit-box-shadow: 1px 1px 5px #999;
        box-shadow: 1px 1px 5px #999;
}
/*** End Home Page Avatar Shadow and Hover Effect ***/


IMPORTANT NOTE:
If your member module avatars get cut off, add this code to bottom of the code for this tip - -
.xg_widget_main .module_members .xg_avatar img {width:90%!important;}


ADD TO FORUM MODULE ONLY:
Here's the trick. If adding the effect to all avatars like above messes things up, due to padding, where's there is not enough room; you could add the effects to individual modules. For example, to add to forum module only, you would
use this code:

.xg_widget_main .module_forum .xg_avatar img {
    padding: 1px;
    border: solid 1px #ffffff;
}
.xg_widget_main .module_forum .xg_avatar img {
    border: solid 1px #CCC;
    -moz-box-shadow: 1px 1px 5px #999;
    -webkit-box-shadow: 1px 1px 5px #999;
        box-shadow: 1px 1px 5px #999;
}
.xg_widget_main .module_forum .xg_avatar img:hover {
    border: solid 1px #e6e6e6; /* Change this color for more distinctive hovered border */
    -moz-box-shadow: 1px 1px 5px #999;
    -webkit-box-shadow: 1px 1px 5px #999;
        box-shadow: 1px 1px 5px #999;
}


Enjoy!
Jen

You need to be a member of Ning Creators Social Network to add comments!

Join Ning Creators Social Network

Votes: 0
Email me when people reply –

Replies

  • thanks for this tip..jen
  • PROFILE PHOTO Extra tweaks: (Adv.CSS) Change the desired color according to yours...

    .photo{
    border:2px solid #F3F781;
    }
  • This reply was deleted.
  • Thanks Jen!
    • NC for Hire
      @Eric V, My pleasure. Hope it works well for you.
  • This reply was deleted.
    • NC for Hire
      Hi Diane,

      For anyone reading this: Add to Custom CSS via My Network/Settings/Appearance/Advanced, and probably best to add to bottom of your CSS.

      I didn't provide the code specifically for the members module. If you only want to apply to members module, use the Forum Code Block above, and change all instances of .module_forum TO .module_members

      Note: Members is the most likely module where this will not work well. Sorry.

      Best,
      Jen
    • NC for Hire
      Hi Diane,
      If your member module avatars get cut off, add this code to bottom of the code you use for this tip:
      .xg_widget_main .module_members .xg_avatar img {width:90%!important;}

      Best Regards,
      Jen
  • This reply was deleted.
  • RESPECT ... you're awesome!
This reply was deleted.
 

Some interesting articles related to community management, digital marketing etc. could be found in our digest. Don't hesitate to leave a feedback so we would know that we should continue :-)

Latest Activity

kostasgr liked Alex - Rosas † Negras's discussion I managed to add group video calling, if anyone is interested I will post the codes
Jul 8
Steve C replied to ⚡JFarrow⌁'s discussion
What is going on with Ning? What Do We have to Look Forward To?
"Ning is based in California but operations are in Kyiv, Ukraine. Due to the war, operations may…"
Jul 6
Alex - Rosas † Negras replied to Alex - Rosas † Negras's discussion
I managed to add group video calling, if anyone is interested I will post the codes
"⚡JFarrow⌁  
I'm working on the stories and I don't have time to work on the video call you just…"
Jun 28
Alex - Rosas † Negras replied to Alex - Rosas † Negras's discussion
I managed to add group video calling, if anyone is interested I will post the codes
"if you want I'll give you the codes privately and we'll see if the two of us can make it perfect"
Jun 27
Eva and ⚡JFarrow⌁ are now friends
NC for Hire
Jun 25
⚡JFarrow⌁ replied to Eva's discussion
For three days now, my networks, Ning 2.0 and Ning 3.0, are incorrectly visible
"Ug... thats not right..  ill send you my phone number in messages and we'll talk it over."
Jun 24
Eva replied to Eva's discussion
Help Help Help
" I just started a test network on Ning. I'm having the same problems there too! No photos, in…"
Jun 21
Eva posted a discussion
Jun 21
Eva posted a discussion
For three days now, my two networks, Ning 2.0 and Ning 3.0, have been displayed incorrectly, they…
Jun 21
⚡JFarrow⌁ replied to Alex - Rosas † Negras's discussion
I managed to add group video calling, if anyone is interested I will post the codes
"looks interesting"
Jun 20
⚡JFarrow⌁ updated their profile photo
Jun 16
Kenny Craig updated their profile
Jun 8
More…

Meanwhile, you can check our social media channels