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

FORUM

NC for Hire

I see there is a CSS Maniac Reward here on Creators so I figured I'd share this expandable menus concept using just CSS and HTML

Final Demo Here:

See the Pen Smart Expandable Menus by JFarrow (@JFarrow) on CodePen.

 

You can view it live on Ning inside my Test Page (nevermind the https...this is my sandbox site)

In order to get this working on your Ning site you'll want to find a place inside your pages where you want it to live...like a sidebar.

Place the following HTML into an HTML module in sites and pages:

<nav>
<div class="menu-item">
<h4 style="text-align: center;"><a href="#">PRODUCT DELIVERY DETAILS</a></h4>
<ul>
<li>
This product will be shipped directly from Italy within 1 - 2 weeks of order.
This product is available to view in our showroom. <strong>View in showroom &gt;
</strong></li>
</ul>
</div>
<div class="menu-item">
<h4 style="text-align: center;"><a href="#">MEET THE DESIGNER</a></h4>
<ul>
<li>For Calflex, design is essential and has lead to the creation of the Carimali range, a modern, avant-garde line. <strong>Find out more &gt;</strong></li>
</ul>
</div>
<div class="menu-item">
<h4 style="text-align: center;"><a href="#">SHARE WITH CLIENT</a></h4>
<ul>
<li>
<div style="text-align: center;"><img alt="" src="/Portals/1/Email.png" style="width: 50px; height: 50px;" />
<img alt="" src="/Portals/1/Wishlist%20Outline.png" onmouseover="this.src='/Portals/1/Wishlist%20Filled.png'" onmouseout="this.src='/Portals/1/Wishlist%20Outline.png'" style="width: 50px; height: 50px;" />
<img alt="" src="/Portals/1/TWIT.png" style="width: 50px; height: 50px;" />
<img alt="" src="/Portals/1/FB.png" style="width: 50px; height: 50px;" />
<img alt="" src="/Portals/1/PIN.png" style="width: 50px; height: 50px;" />&nbsp;</div>
<div style="text-align: center;">Email, Add to Wishlist, Tweet, Facebook or Pin your inspiration!</div>
</li>
</ul>
</div>
<div class="menu-item">
<h4 style="text-align: center;"><a href="#">ASK A QUESTION</a></h4>
<ul>
<li></li>
</ul>
</div>
</nav>

 

 

Place the following CSS inside the design studio and adjust it according to your needs/color/text/ect.

nav {
font-family: Arial, sans-serif;
line-height: 1.5;
margin: 50px auto; /*for display only*/
width: 300px;

}

.menu-item {
background: #fff;
width: 300px;
}

/*Menu Header Styles*/
.menu-item h4 {
color: #fff;
font-size: 15px;
font-weight: 500;
padding: 7px 12px;
background: #000;
}

.menu-item h4 a {
color: white;
display: block;
text-decoration: none;
width: 300px;
}

/*Menu Header Styles*/
.menu-item h4 {
border-bottom: 1px solid rgba(0,0,0,0.3);
border-top: 1px solid rgba(255,255,255,0.2);
color: #fff;
font-size: 15px;
font-weight: 500;
padding: 7px 12px;
}

.menu-item h4:hover {
background: #CACACF;
}

/*ul Styles*/
.menu-item ul {
background: #fff;
font-size: 13px;
line-height: 30px;
list-style-type: none;
overflow: hidden;
padding: 0px;
}

.menu-item ul a {
margin-left: 20px;
text-decoration: none;
color: #aaa;
display: block;
width: 300px;
}

/*li Styles*/
.menu-item li {
border-bottom: 0px solid #eee;
}

.menu-item li:hover {
background: #FFF;
}

/*ul Styles*/
.menu-item ul {
background: #fff;
font-size: 13px;
line-height: 30px;
height: 0px; /*Collapses the menu*/
list-style-type: none;
overflow: hidden;
padding: 5px;
}

/*ul Styles*/
.menu-item ul {
background: #fff;
font-size: 13px;
line-height: 30px;
height: 0px;
list-style-type: none;
overflow: hidden;
padding: 5px;

/*Animation*/
-webkit-transition: height 1s ease;
-moz-transition: height 1s ease;
-o-transition: height 1s ease;
-ms-transition: height 1s ease;
transition: height 1s ease;
}

.menu-item:hover ul {
height: 140px;
}


.button {
font-family: Arial, sans-serif;
font-size: 12px;
padding: 5px 10px;
transition: all 0.2s ease-out;
&:hover {
border-color: #999;
box-shadow: 0 1px 3px rgba(0,0,0,0.25);
}
&:active {
box-shadow: 0 1px 3px rgba(0,0,0,0.25) inset;
}
}

.overlay {
position: absolute;
top: 0;
bottom: 0;
left: 0;
right: 0;
background: rgba(0,0,0,0.5);
transition: opacity 200ms;
visibility: hidden;
opacity: 0;
&.light {
background: rgba(255,255,255,0.5);
}
.cancel {
position: absolute;
width: 100%;
height: 100%;
cursor: default;
}
&:target {
visibility: visible;
opacity: 1;
}
}

.popup {
margin: 75px auto;
padding: 20px;
background: #fff;
border: 1px solid #666;
width: 300px;
box-shadow: 0 0 50px rgba(0,0,0,0.5);
position: relative;
.light & {
border-color: #aaa;
box-shadow: 0 2px 10px rgba(0,0,0,0.25);
}
h2 {
margin-top: 0;
color: #666;
font-family: "Trebuchet MS", Tahoma, Arial, sans-serif;
}
.close {
position: absolute;
width: 20px;
height: 20px;
top: 20px;
right: 20px;
opacity: 0.8;
transition: all 200ms;
font-size: 24px;
font-weight: bold;
text-decoration: none;
color: #666;
&:hover {
opacity: 1;
}
}
.content {
max-height: 400px;
overflow: auto;
}
p {
margin: 0 0 1em;
&:last-child {
margin: 0;
}
}
}

 

That's it!  Let me know if you have any questions or need help with your community!

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

Join Ning Creators Social Network

Email me when people reply –

Announcements

 

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

J.Ayvar replied to ⚡JFarrow⌁'s discussion
Yet Another Time Saver: Code for Finding Members Anywhere in US
"Thanks for share! By the way, It Is possible make something similar with the gender option or both…"
5 hours ago
Catherine Grenfell updated their profile
5 hours ago
Rhonda updated their profile photo
6 hours ago
Rhonda replied to ⚡JFarrow⌁'s discussion
Yet Another Time Saver: Code for Finding Members Anywhere in US
"Hi JFarrow,I would like to obtain this code that you have created for finding members via location.…"
6 hours ago
Stan is now a member of Ning Creators Social Network
13 hours ago
Tyler Durbin replied to ⚡JFarrow⌁'s discussion
Yet Another Time Saver: Code for Finding Members Anywhere in US
"Whoa!  Awesome!!"
yesterday
⚡JFarrow⌁ replied to Bernard Lama's discussion
Tip: (Ning 2.0 and 3.0) How to add multiple custom navigation menus in Ning?
"I was thinking about this just the other day... wondering if there might be a way to collapse the s…"
yesterday
Sir Gissachance replied to marie b's discussion
Landing page : won't save ... fragile, slow and buggy
"Hi marie b,
I had the same problem and the only way mine worked was to open the landing page from t…"
yesterday
9jabook Abi John replied to Anastasia_Ning_Support's discussion
Why should I migrate?
"ning 3.0 is probably the biggest mistake ning has made imo . i ahve been on ning 2.0 for 10yrs ! a…"
yesterday
Anastasia_Ning_Support replied to Ana Massien's discussion
Leaderboards and Points
"Hi there!
This feature was launched as a way of encouraging members to be active and generate conte…"
yesterday
Anastasia_Ning_Support replied to Ana Massien's discussion
Emoji, @mentions and tags?
"Hello Ana!
These updates have been requested for a long time now, but unfortunately, they will not…"
yesterday
Anastasia_Ning_Support replied to Anastasia_Ning_Support's discussion
Step-by-step migration guide
"Hello Fred!

You can check the list via the link - https://www.ning.com/ning3help/content-that-cann&hellip;"
yesterday
More…

Meanwhile, you can check our social media channels