Related Links

Menubar in your Blog

by Poonam | 9:00 PM in |

This tips explains how you can add a simple menubar to the top of your Blog. It is in
fact a simple link list, and that is a standard page element of Blogger Beta.

The code of this section is highlighted in pink:
id='header-wrapper'>

maxwidgets='1' showaddelement='yes'>





id='header' maxwidgets='1' showaddelement='no'>

type='Header'/>





To the CSS-part of your template, add coding for the menubar-id:
#menubar
h2 {display:none;}
#menubar ul {
list-style: none;
}
#menubar li {
float: left;
}
#menubar a:link, #menubar a:visited, #menubar a:hover {
padding: 5px;
display: block;
color: $headerTextColor;
}
#menubar a:hover {
background-color: $headerCornersColor;
}

The menubar title is hidden, so that only the options are visible.
The list-elements are set to none, so that there are no bullets in front of the
menu options. And if a menu-option is hovered over, it is highlighted.

0 comments:

Related Links