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

  • Hi there Jen I am on ning 3.0 and it is not working for me. Do you think maybe you or somebody can update the code for me? ^_^ Thanks

    • Hi there!

      If you are ok with using this for every avatar on your network, you can use the following code:

      .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;
      }
      .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;
      }

      I haven't chnaged the properties suggested by Jen, only picked up suitable class to apply on 3.0.

      Best regards,

      Ning Team.

      • thank you so much kyryl. How can I make the border and stuff rainbow? 

        • Hi there!

          As I see on your network you already have the rainbow background for borders of the images on the homepage. You can use the same approach to make the rainbow backgrounds here. By the way, you have unticked the checkbox, "Set as the home page" that's why some people might not be able to reach your site by the link to teh home page, if that was made on intention please correct this issue.

          Best regards,

          Ning Team.

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

LEO Mobile App Builder updated their profile
Tuesday
Aase Lillian replied to Aase Lillian's discussion
Community - activity page
"Ok, thank you. Please send me details as I have no idea on how to do it. "
Mar 19
Aase Lillian and ⚡JFarrow⌁ are now friends
NC for Hire
Mar 19
⚡JFarrow⌁ updated their profile photo
Mar 18
⚡JFarrow⌁ replied to Aase Lillian's discussion
Community - activity page
"Yes you can add emojis to your community pretty much anywhere you like.
If you need some help…"
Mar 18
Aase Lillian updated their profile
Mar 18
Aase Lillian posted a discussion
Hi all. Is it possible to add emojis to the community? I also wish the activity page to include…
Mar 18
Donna MacShoe updated their profile photo
Mar 6
Adul Rodri is now friends with ANGE.L LUAR and Margarida Maria Madruga
Feb 14
Shweta Sharma updated their profile
Jan 26
catherine martin updated their profile
Jan 16
Donna MacShoe updated their profile photo
Jan 15
More…

Meanwhile, you can check our social media channels