O'Reilly logo

Building Online Communities with phpBB 2 by Stoyan Stefanov, Mike Lothar, Jeremy Rogers

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

CSS

If you look in the original subSilver menu you will notice that all of the links are surrounded by <span class="mainmenu"> and </span> tags. This is a reference to the CSS code, and if you look higher up in the code of the overall_header.tpl, where the CSS is located, you can find this (reformatted here for the book):

/* The register, login, search etc links at the top of the page */
.mainmenu { font-size : {T_FONTSIZE2}px;
color : {T_BODY_TEXT}
}
a.mainmenu { text-decoration: none;
color : {T_BODY_LINK};
}
a.mainmenu:hover { text-decoration: underline;
color : {T_BODY_HLINK};
}

Here we can change everything we want about the way the menu is displayed. The first line, surrounded by the /* and */ tags, is just a comment to help us out and is ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required