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 –
 

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

Matthew Aukai Wright replied to Bizz ( John )'s discussion
How To Make Your Feature, Add, Edit Buttons At The Top Of Pages Stand Out Better (Updated 08/01/17)
"Hey there. How can I add a rainbow background picture to the buttons? "
3 hours ago
Suzie Nielsen replied to Rowald's discussion
Ning not GDPR compliant
"new Question same Topic... what if I remove google analytics altogether... that's all I use... coul…"
10 hours ago
⚡JFarrow⌁ commented on Rosas † Negras's blog post Bar Skysa into 3.0
"Yes, skysa works.... you'll want to put it inside the Custom Code Footer box in 3.0... hope this he…"
16 hours ago
Fabricio Giugni replied to Fabricio Giugni's discussion
Chat help
"Hi,
   The only problem is that I can not make it work even if there is lot's of people. No one get…"
16 hours ago
Thisisbully replied to Fabricio Giugni's discussion
Chat help
"on mobile the chat notifications do not show "
17 hours ago
Gavin Brown replied to Kyryl_Ning_Support's discussion
Changes on facebook, and new instructions how the app should be set up
"Thanks for replying Anastasia!"
19 hours ago
Anastasia_Ning_Support replied to Cindy Dean Mccoy's discussion
Trouble tickets just sitting there
"Hi there!
It is true, that in terms of updates and new features, we are focusing on 3.0 platform, b…"
22 hours ago
Anastasia_Ning_Support replied to Fabricio Giugni's discussion
Chat help
"Hi there!
Thank you for checking once again and clarifying. It was made intentionally to leave memb…"
23 hours ago
Matthew Aukai Wright replied to Fire-Tech's discussion
3.0 Tip: Leave Network Button
"how can I make the button rainbow? "
23 hours ago
Anastasia_Ning_Support replied to Fabricio Giugni's discussion
Add Photos location problem.
"Hi there!
No, unfortunately, it is not possible to do so. As an example, we have added such button…"
23 hours ago
Anastasia_Ning_Support replied to Kyryl_Ning_Support's discussion
Changes on facebook, and new instructions how the app should be set up
"Hi there!
Unfortunately no update yet, it`s still in process of solving. 
Best regards,
The NING Te…"
23 hours ago
Lady Shadow replied to Lady Shadow's discussion
my ning 3,0 i HAVE TO BEG ning TO FIX EACH DAY AND PAY 59
"Thanks checking it now"
yesterday
More…

Meanwhile, you can check our social media channels