Skip to content
View in the app

A better way to browse. Learn more.

Web Designer Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

formatting a submenu problem

Featured Replies

It was necessary to add submenus to an already existing menu , as it can be seen below I nested it but the original .css was not written to accomodate submenus.

As it can be seen on the attached picture , the submenu is not formatted as the menu so that it hurts the layout.

Can someone please help me out ? Thanks.


 

 

 

............

<div class="navigation">

<nav>
<ul class="sf-menu">
<li><a href="index.html">Home</a></li>
<li >
<a href="index-1.html">Séries</a>
<ul>
<li><a href="olhar.html">Olhar</a></li>
<li><a href="intemperies.html">Intempéries</a></li>
<li><a href="pensamento.html">Pensamento</a></li>
</ul>
</li>
<li><a href="index-3.html">Agenda</a></li>
<li><a href="index-2.html">Betto</a></li>
<li><a href="index-4.html">Contato</a></li>
</ul>
</nav>
........................
menu.css
..........................
.navigation {
z-index: 999;
position: relative;
}
.select-menu {
display: none !important;
}
.navigation .sf-menu {
z-index: 990;
text-align: left;
position: relative;
}
nav {
position:relative;
padding: 0;
}
.sf-menu ul {
position:absolute;
top:-999px;
display:none;
}
.sf-menu>li {
display: block;
position: relative;
float: left;
padding: 2px 0 1px;
font: 30px/40px 'Economica', sans-serif;;
-moz-box-sizing: border-box;
-webkit-box-sizing: border-box;
-o-box-sizing: border-box;
box-sizing: border-box;
background-color: #34393d;
}
.sf-menu>li+li {
}
.sf-menu>li>ul>li {
float: none;
position: static;
}
.sf-menu>li>a{
position: relative;
color: #fff;
border-left: 1px solid #fff;
display: block;
padding: 27px 48px 31px 49px;
}
.sf-menu>li.sfHover>a, .sf-menu>li.current>a, .sf-menu>li>a:hover {
color: #d9593f;
}
.sf-menu>li>ul>li>a.sf-with-ul:after {
content: '';
font-family: 'FontAwesome';
position: absolute;
width: 5px;
font-size: 13px;
line-height: 13px;
font-weight: normal;
right: 20px;
left: 50%;
;
color: #fff;
bottom: -6px;
pointer-events: none;
z-index: 999;
}
.sf-menu>li>a.sf-with-ul:after {
content: '';
font-family: 'FontAwesome';
position: absolute;
width: 5px;
left: 50%;
;
font-size: 15px;
line-height: 13px;
font-weight: normal;
color: #fff;
bottom: 10px;
pointer-events: none;
z-index: 999;
}
/*================================>> 2 Level <<========================================*/
.sf-menu>li ul {
left: 50%;
;
z-index: 999;
width: 109px;
background-color: #222;
top: 83px;
padding-bottom: 9px;
}
.sf-menu li ul li {
position: relative;
text-align: center;
float: none !important;
}
.sf-menu li ul li+li {
}
.sf-menu li ul li a{
position: static;
font-size: 13px;
line-height: 30px;
z-index: 999;
color: #fff;
font-weight: normal;
}
.sf-menu li li a:hover,
.sf-menu li.sfHover li.sfHover>a {
color: #9b3334;
}
/*================================>> 3 Level <<========================================*/
.sf-menu>li ul li ul{
position: absolute;
left: 109px;
margin-left: 0;
top: -9px;
padding-top: 13px;
padding-bottom: 15px;
}
.sf-menu li ul ul li+li {
margin-top: 5px;
}
.sf-menu li ul ul li a {
display: block;
line-height: 20px;
padding: 3px 0 2px;
}
.sf-menu li ul ul li a:hover {
color: #fff;
background-color: #9b3334;
}

 

 

 

 

 

post-38958-0-56140500-1424613619_thumb.jpg

After a quick look you would want to style the section between '2 level' and '3 level'

 

if this is in a plugin CSS file then overwrite it in your CSS rather then the plugin as when it updates any changes may be overwritten.

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.