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

⚡JFarrow⌁ replied to ⚡JFarrow⌁'s discussion
Create a More Exciting "Featured" Email With Language Editor

still one of the most powerful tools and one of the first things I change when I start a new comm…"
14 hours ago
⚡JFarrow⌁ replied to ⚡JFarrow⌁'s discussion
How to Give Your Ning a Really Fake Voice
"These days I use Speakpage and it provides a great on the fly service, but it is limited to a singl…"
14 hours ago
⚡JFarrow⌁ replied to ⚡JFarrow⌁'s discussion
How to Create Search Feeds in Bing with a Simple Hack
"thank you brother"
14 hours ago
⚡JFarrow⌁ replied to ⚡JFarrow⌁'s discussion
How-to Control Number of Member Profiles on Member Page Using CSS
"Wow... just look how active Creators used to be!"
14 hours ago
⚡JFarrow⌁ replied to ⚡JFarrow⌁'s discussion
You May Not Know This About Facebook
"this tip worked well for me today again"
14 hours ago
⚡JFarrow⌁ replied to ⚡JFarrow⌁'s discussion
Linkedin Tip: Export Your Contacts For Import Into Ning
"yes it most definitely does work on both"
14 hours ago
⚡JFarrow⌁ updated their profile
15 hours ago
⚡JFarrow⌁ replied to Fabricio Giugni's discussion
How can I add video from Youtube on landing page?
"Simply right click on the video and open HTML/CSS then find the line where the youtube video URL is…"
15 hours ago
J.Ayvar replied to Anastasia_Ning_Support's discussion
Join our webinar on SEO
"Thank you!  i am wating for the webinar. Just 5 minutes :)"
18 hours ago
Anastasia_Ning_Support replied to Ceddy J's discussion
Disk Usage Enforcement
"Hello Ceddy! 
Thank you for addressing this issue here. 
We need some time to check the content of…"
21 hours ago
Jelena replied to Fabricio Giugni's discussion
About Ning 4.0
"Hello 
after you try the new ning 4 can you go back to ning 3 if you aren’t satisfied?"
yesterday
Anna_Ning_Support replied to J.Ayvar's discussion
Ning 4. PageSpeed Insights Vs Ning 3
"Hello,
We do appreciate your feedback and also the provided information.
It will be reported to the…"
yesterday
More…

Meanwhile, you can check our social media channels