Latest topics
» bug in update color
by jlmic Today at 12:04

» Dark Theme Help
by Haggis Yesterday at 21:25

» Forumactif Edge - Greek Translation
by Van-Helsing Yesterday at 18:34

» Auto-suggest Plugin execute Javascript
by MiyakeDev Yesterday at 16:42

» Forumactif Edge - Releases
by Ange Tuteur Yesterday at 15:12

» Forumactif Edge - Arabic Translation
by Ange Tuteur Yesterday at 12:48

» Gateway to Role-Play
by JerriLeah7 Sun 26 Mar 2017, 15:40

» [GAME] Count to One Million!
by brandon_g Sun 26 Mar 2017, 11:51

» Happy Birthday Thread
by brandon_g Sun 26 Mar 2017, 11:50

» Forumactif Edge Web Page - Translations
by Ange Tuteur Sat 25 Mar 2017, 18:06

» Quick Reply Bug
by Ange Tuteur Sat 25 Mar 2017, 17:44

» Forumactif Edge - Portuguese Translation (Brazilian)
by Ange Tuteur Sat 25 Mar 2017, 17:40

» Adding text to reputation counter
by Ange Tuteur Thu 23 Mar 2017, 17:19

» Forumactif Edge - Spanish Translation
by Ange Tuteur Thu 23 Mar 2017, 16:24

» How do I add hover examine feature?
by dr.kran Thu 23 Mar 2017, 06:18

Recent Tutorials
Who is online?
In total there are 5 users online :: 0 Registered, 0 Hidden and 5 Guests :: 1 Bot

None

[ View the whole list ]


Most users ever online was 172 on Fri 19 Feb 2016, 05:17

phpbb3: A new type of navbar

View previous topic View next topic Go down

avatar
Ange Tuteur
Administrator
Title :
Coffee Addict
Gender : Male
Age : 21
Posts : 4393
Points : 9049
Reputation : 2189
Location : Macungie, PA
Language : EN10, FR5
Browser : Browser : Brave Forum Version : Forum Version : Forumactif Edge
Awards :
View all awards
View user profile https://github.com/SethClydesdale https://twitter.com/sethc1995

PostAnge Tuteur on Wed 02 Oct 2013, 00:41

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!


Notice
Tutorial written by Ange Tuteur.
Reproduction not permitted without consent from the author.
avatar
universecat

Title :
Protector of the Universe
Gender : Female
Age : 16
Posts : 569
Points : 846
Reputation : 3
Location : unkown
Language : English
Browser : Browser : Mozilla Firefox Forum Version : Forum Version : phpBB2
Awards :
View all awards
View user profile

Postuniversecat on Sun 30 Oct 2016, 13:07

Thank you so much for this tutorial! It works amazingly on my newly created forum!

View previous topic View next topic Back to top

Create an account or log in to leave a reply

You need to be a member in order to leave a reply.

Create an account

Join our community by creating a new account. It's easy!


Create a new account

Log in

Already have an account? No problem, log in here.


Log in

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