
If you're new here, you may want to subscribe to my RSS feed. Thanks for visiting!
Next, we open our demo theme’s style.css file and look for classes that define the main menu and copy it. In our case it was .wrap and .menu and liked like below:
#topbar .wrap {
background: #790000;
height: 51px;
width: 958px
}
and
.menu {
background: #F7F7F6;
height: 34px;
line-height: 34px;
border-left: 1px solid #D6D6D6;
border-right: 1px solid #D6D6D6;
border-bottom: 1px solid #D6D6D6;
padding: 0;
margin: 0;
}
.menu a {
color : #74797E;
background : inherit;
text-decoration : none;
padding: 0 10px 0 10px;
line-height : 23px;
}
.menu a:hover, .menu .current {
color : #000;
background : inherit;
height : 23px;
text-decoration: underline
}
.menu ul {
list-style : none;
padding : 0;
margin : 0;
}
.menu li {
float : left;
margin : 0 0 0 0px;
display: inline;
}
Paste this style information just below the above code within the style.css and replace .wrap with .subwrap and .menu with .submenu.
November 6th, 2008 at 2:15 pm
[...] will use the same demo theme we created during the previous tutorial. As you can see it has conditional page tags built in, just like many of our other new [...]
September 16th, 2008 at 10:38 pm
brilliant. So simple and easy, and explained well. So, I expect the conditional explanation involves how to target related pages? Looking forward to more.
September 1st, 2008 at 7:17 pm
[...] Part 3.1 — Navigation – Second Lavel Menu [...]