Please post the URLs to pages, where you've made a CMSimple template available for download
Moderator: mikey
-
lck
- Posts: 2967
- Joined: Wed Mar 23, 2011 11:43 am
-
Contact:
Post
by lck » Sun Dec 18, 2016 2:08 pm
Sorry, please undo my first change.
Should be, add to your stylesheet.css:
Code: Select all
#nav ul.menulevel1 > li {
float: none;
}
Then, there's still a change in stylesheet.css line 461:
Code: Select all
#nav.b ul ul ul {
right: 181px; /* change 181px to 281px */
z-index: -1;
box-shadow: 0 3px 3px #aaa;
border: 1px solid #777;
border-right: none;
}
-
Nicky
- Posts: 164
- Joined: Sun Feb 08, 2009 9:50 am
- Location: Antwerp, Belgium
Post
by Nicky » Sun Dec 18, 2016 6:51 pm
Probably did something wrong, everything stays lined out to the left. This is the code adapted from line 402 till +/- 475 where I made modifications:
Code: Select all
#nav ul.menulevel1 li {
/* float: left; */
margin-right: 8px;
position: relative;
white-space: nowrap;
}
#nav ul.menulevel1 > li {
float: none;
margin-right: 8px;
position: relative;
white-space: nowrap;
}
#nav ul ul {
position: absolute;
visibility: hidden;
width: 280px;
background: black;
padding: 2px 5px 3px 7px;
box-shadow: 3px 3px 5px #aaa;
border: 1px solid #777;
border-top: none;
}
#nav ul.menulevel2 {
z-index: 15;
}
#nav.a ul.menulevel2 {
left: -1px;
border-radius: 0 .5em .5em .5em;
}
#nav.b ul.menulevel2 {
right: -1px;
border-radius: .5em 0 .5em .5em;
}
#nav ul.menulevel1 li ul.menulevel2 li {
width: 278px;
white-space: normal;
margin: 5px 0;
padding: 0;
border: none;
line-height: 1.1;
}
#nav ul.menulevel1 li ul.menulevel2 li a {
margin: -2px;
padding: 2px;
background: black;
}
#nav ul.menulevel1 li ul.menulevel2 li span {
margin: -2px;
padding: 1px;
background: #2F261E;
border-radius: 4px;
display: inline-block;
}
#nav ul ul ul {
top: -8px;
border-radius: .5em;
}
#nav.a ul ul ul {
left: 278px;
z-index: 20;
border: 1px solid #777;
border-left: none;
}
#nav.b ul ul ul {
right: 281px;
z-index: -1;
box-shadow: 0 3px 3px #aaa;
border: 1px solid #777;
border-right: none;
}
#nav li:hover > ul {
visibility: visible;
}
Result, see ->
http://www.walhalles.be/december2016
...
-
lck
- Posts: 2967
- Joined: Wed Mar 23, 2011 11:43 am
-
Contact:
Post
by lck » Sun Dec 18, 2016 7:56 pm
It should look like this.
Code: Select all
#nav ul.menulevel1 li {
float: left;
margin-right: 8px;
position: relative;
white-space: nowrap;
}
#nav ul.menulevel1 > li {
float: none;
}
and
Code: Select all
#nav.b ul ul ul {
right: 281px;
z-index: -1;
box-shadow: 0 3px 3px #aaa;
border: 1px solid #777;
border-right: none;
}
EDIT: Maybe still important, delete Browser-Cache and reload page.
-
Nicky
- Posts: 164
- Joined: Sun Feb 08, 2009 9:50 am
- Location: Antwerp, Belgium
Post
by Nicky » Sun Dec 18, 2016 9:15 pm
Super, works fine now!
Many thanks for your effort!