Welcome Guest [Log In] [Register]
3 Piece Submenu
Topic Started: Sep 6 2008, 09:00 AM (1,123 Views)
Leonardo
Member Avatar
I Wonder
3 Piece Submenu

If you wish to create a fluid theme and you wish to have a complex submenu rather than a repeating background image, I suggest you use this. I only recommend this to be used by designers who are familiar with CSS and HTML.

Theme Layout
Change the # with your server and BOARDNAME to your board name.
Code:
 
<div id="menu">
<div id="menu_l"></div>
<div id="menu_r"></div>
<a href="http://s#.zetaboards.com/BOARDNAME/site/">Portal</a>
<a href="http://s#.zetaboards.com/BOARDNAME/faq/">FAQ</a>
<a href="http://s#.zetaboards.com/BOARDNAME/search/">Search</a>
<a href="http://s#.zetaboards.com/BOARDNAME/members/">Members</a>
<a href="http://s#.zetaboards.com/BOARDNAME/calendar/">Calendar</a>
</div>

You can continue adding links to the submenu by adding
Code:
 
<a href="http://link.com/">Link </a>


Theme Appearance
Code:
 
/* repeating background image of the submenu */
#menu {
background:url(http://);
height: #px;
text-align: center;
font-size: #px;
border: 1px solid #HEX;
}

/* left image */
#menu_l {
background:url(http://) no-repeat ;
height: #px;
width: #px;
float:left;
}

/* right image */
#menu_r {
background:url(http://) no-repeat ;
height: #px;
width: #px;
float:right;
}

/*Link colors*/
#menu a {
color: #HEX;
font-weight: bold;
font-size: 12px;
padding:0px 5px 0px 5px
}


Simply change the HEX to your color choice and the width and height of the images.
If you are confident with CSS, you can add more attributes to the IDs given.

Hopefully that was quite easy to follow.
Edited by Leonardo, Sep 6 2008, 09:02 AM.
Posted Image
Signature made by Raymond
Goto Top
 
Aaron.
Member Avatar
tippin on foh fohs
Thank you so much Leonardo ! This really is what I was looking for :P :D
Comment my work :)

Drops of Jupter
First One Back
Jay-Z Icons
Kanye West Icons
Lil Wayne Icons
Pirates of the Caribbean Icons
Goto Top
 
Sith
Member Avatar
Monochrome memories and colourless melodies get too loud
But you could just use <!-- SUBMENU --> rather than all those custom links if you just wanted the default submenu and webpage links encased in a 3-part shell. :P
Posted Image Posted Image Posted Image Posted Image

Looking for guest theme contributions on themeszetaboards.com - If you're interested in having your theme added to the database there please PM me and I will take a look - Must include at least a basic graphics pack

Goto Top
 
Aaron.
Member Avatar
tippin on foh fohs
I take it back ! :P It isn't working quite right =[ I'm going to edit my support topic and hopefully you could assist :arr:
Comment my work :)

Drops of Jupter
First One Back
Jay-Z Icons
Kanye West Icons
Lil Wayne Icons
Pirates of the Caribbean Icons
Goto Top
 
Leonardo
Member Avatar
I Wonder
Sith_Lord
Sep 19 2008, 07:35 PM
But you could just use <!-- SUBMENU --> rather than all those custom links if you just wanted the default submenu and webpage links encased in a 3-part shell. :P
I was thinking that too but usually when people go for 3 piece codes they usually don't want the default links and they want to add extra links. So instead of using a javascript for just a little thing, I just made it a little easier :P
Posted Image
Signature made by Raymond
Goto Top
 
Sith
Member Avatar
Monochrome memories and colourless melodies get too loud
Leonardo
Sep 20 2008, 01:38 PM
Sith_Lord
Sep 19 2008, 07:35 PM
But you could just use <!-- SUBMENU --> rather than all those custom links if you just wanted the default submenu and webpage links encased in a 3-part shell. :P
I was thinking that too but usually when people go for 3 piece codes they usually don't want the default links and they want to add extra links. So instead of using a javascript for just a little thing, I just made it a little easier :P
Fair enough. :P
Posted Image Posted Image Posted Image Posted Image

Looking for guest theme contributions on themeszetaboards.com - If you're interested in having your theme added to the database there please PM me and I will take a look - Must include at least a basic graphics pack

Goto Top
 
Rae
Member Avatar
New Member
Thanks for this Leo. :)
Posted Image
Goto Top
 
P.hant0m
Member Avatar
TZ Frequent
It removed my old submenu and added a new one to the bottom. :unsure:
Posted Image
^ Ancient work. Nothing new for a while. ^
Goto Top
 
GhostZB
Member Avatar
Settled In
Great tutorial.
Posted Image
Goto Top
 
high_sky
Member Avatar
Settled In
could you make this cut up the background image for the submenu text instead of the background image for the submenu bar?
Posted Image
ZBtopsite| ZBthemezone| ZBcode

Posted Image
Goto Top
 
P.hant0m
Member Avatar
TZ Frequent
Ah, I finally got it! :D
Posted Image
^ Ancient work. Nothing new for a while. ^
Goto Top
 
Frostwind
Settled In
Doesn't work correctly :/ I don't think I have anything wrong either. It seems to jsut keep the repeating stretch image.
Posted Image
Goto Top
 
Arianna
Member Avatar
turn the record on. wonder what went wrong.
The image is perfect for me but I can't seem to get the text right actually. :P So I just use the 2-Piece. No different except you can customize your links.
Goto Top
 
NRDarkKnight
Member Avatar
Settled In
Do you have a test board where you can show us a preview of this???
Posted Image
Spoiler: click to toggle
Goto Top
 
vcd
Member Avatar
TZ Obsessed
Arianna
Jun 25 2009, 12:26 AM
The image is perfect for me but I can't seem to get the text right actually. :P So I just use the 2-Piece. No different except you can customize your links.
I can't seem to get the text right either, the top and bottom paddings don't seem to do anything. :/
Recommended Forums:Posted Image Posted Image

My themes: http://s1.zetaboards.com/wnd4459
Goto Top
 
1 user reading this topic (1 Guest and 0 Anonymous)
« Previous Topic · Theme Tricks · Next Topic »