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

Marly posted a discussion
With ning we can create our own profile questions, however, is there a way to remove or change the…
1 hour ago
Scott Bishop posted a discussion
Does anyone have a good hack to create endless scrolling on our photo and video pages? I had a grea…
6 hours ago
Scott Bishop replied to George H. Compton IV's discussion
(TIP) Ning 2.0 responsive fullwidth network at any screen resolution. :O Cellphones to TV's ;)
"Hi George, 
Thank you for this update. My site was finally updated with SSL today and it broke your…"
9 hours ago
Anastasiia_NING support posted discussions in NING BUSINESS CLUB
12 hours ago
Harald Bornebroek replied to Harald Bornebroek's discussion
Sign in via LinkedIn, Twitter , Yahoo etc.

Hi Anasatsia,
Thanks but I can not find the LinkedIn one.  How do I get that one?
How do I get th…"
16 hours ago
Anastasia_Ning_Support replied to Harald Bornebroek's discussion
Sign in via LinkedIn, Twitter , Yahoo etc.
"Hello! 
To enable social sign up/in open your Member Managment menu, switch to the Sign up & Sign i…"
16 hours ago
Louie St Clair, Shane Mecklenburger, Louis Mimouni and 5 more joined Ning Creators Social Network
22 hours ago
Scott Bishop replied to Scott Bishop's discussion
Photo Slide Show Not Working
"Now that you mention it, no. The items that have been taged are still searchable but they are not v…"
yesterday
Harald Bornebroek posted a discussion
This Ning powerd site: http://homeenergypros.org/ ;; has the cabaility to sign in via LinkedIn, Yaho…
yesterday
Anna_Ning_Support replied to Scott Bishop's discussion
Photo Slide Show Not Working
" Hello, Scott!
The issue with the photos is connected to the Flash Player that we stopped to suppor…"
yesterday
Anna_Ning_Support replied to Kyryl_Ning_Support's discussion
It's time to say goodbye to Flash player
"Hello, Scott!
We investigated the issue on your site and found out that this is connected to the te…"
yesterday
Anna_Ning_Support replied to Kyryl_Ning_Support's discussion
SSL certificate feature release
"Hello, Scott!
We reported your request to the Technical Team and will inform you of the updates reg…"
yesterday
More…

Meanwhile, you can check our social media channels