FM Themes
Welcome to FM Themes
where you can share your punBB, phpBB 2, Invision, & phpBB 3 themes for Forumotion forums.

You are viewing the forum as a guest, so you will not be able to use the full forum. To use all the features of the forum, you need to log in or create a FREE account by registering.

phpbb3: A new type of navbar

View previous topic View next topic Go down

phpbb3: A new type of navbar

Post by Ange Tuteur on Tue Oct 01, 2013 11:50 pm

A new type of navbar phpbb3

This tutorial will help you with adding a new type of navbar to your forum, and how to customize it! It is mainly ran off of CSS so it is lightweight, but you can use mini images too if you like.

Applying Navbar

Before we start make sure your forum is displaying texts in the navbar. Navigate to..
Administration Panel > Display > Homepage > Headers and navigation

Find Display only images in the navbar tick no and save.

Now that we have done that we can apply the CSS, navigate to..
Display > Pictures and color > Colors > CSS stylesheet and paste the following code into your sheet and save.

Code:
ul.navlinks a.mainmenu{
box-shadow: 0px 2px 6px #59f inset;
text-shadow: 1px 1px 2px #000;
background-color:#3377bb;
border:1px solid #444;
margin-right:-4px;
margin-left:-4px;
font-weight:bold;
font-size: 11px;
transition:0.5s;
padding:5px;
color:#eee;
}
ul.navlinks a.mainmenu:hover{
background-color:#3388ff;
color:#ff8;
}
ul.navlinks {
position:relative;
text-align:center;
border:none;
}
.navbar {
background-color:transparent;
padding:0px 10px;
clear:both;
}
When submitted your navbar should now look like the following picture.


Explanation

I will try to explain as best I can on how you can modify this navbar to flow with your forum.

For the first block these are the properties used:

box-shadow: This property allows you to adjust an inset shadow which helps give the navbar its shiny look. You can use Hex color, words, or rgb to edit the color of the shadow. Its best to use a color lighter than your primary so it appears shiny.

text-shadow: This is the shadow of the text, you do not really need to modify this property since the shadow used is pretty neutral across all colors.

background-color: This is the background color of the buttons, or 'blue' as we used in this tutorial. As mentioned above you can use hex color, names, or rgb.

border: This is the border of the buttons which is set to a light gray.

margin-right: This helps place the buttons close together.

margin-left: This helps place the buttons close together.

font-weight: This is the weight of our font which is set to bold.

font-size: This is the font size, you can modify this in pixels to your liking.

transition: This property ensures that the transition in colors on mouseover is as smooth as possible.

padding: This is the padding of the text, its what helps make it look like a button, you can edit the size to your liking.

color: This is used to color our font, currently it is set to a white.

These are the properties used in the second block: These properties are applied on mouseover

background-color and color: For hover colors it is best to choose a color that is lighter or darker than your primary color used.

Thank you for reading and good luck on making your customized CSS NAVs!

Useful Reading

For more information on the properties used in this tutorial consult the following links.

[You must be registered and logged in to see this link.]
[You must be registered and logged in to see this link.]
[You must be registered and logged in to see this link.]
[You must be registered and logged in to see this link.]
[You must be registered and logged in to see this link.]
[You must be registered and logged in to see this link.]
[You must be registered and logged in to see this link.]
[You must be registered and logged in to see this link.]
[You must be registered and logged in to see this link.]
[You must be registered and logged in to see this link.]

Tutorial written by [You must be registered and logged in to see this link.]
No reproduction possible without my consent.

Ange Tuteur
Themer

Reputation : 204
Points : 9162
Posts : 303

View user profile http://fmdesign.forumotion.com/

Back to top Go down

Re: phpbb3: A new type of navbar

Post by SLGray on Thu Oct 03, 2013 11:08 am

Thanks for sharing this tutorial.

Approved

SLGray
Administrator

Reputation : 294
Points : 1597
Posts : 3723

View user profile http://fmthemes.forumotion.com

Back to top Go down

View previous topic View next topic Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum