Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

CSS Forum


You are currently viewing our CSS Forum as a guest. Please register to participate.
Login



Reply
Old 12-09-2009, 01:37 PM PHP Menu
Skilled Talker

Posts: 97
Trades: 0
Ok so Im having a, template designed and coded but to keep costs down im trying to utilise my old menu structure here www.electrifire.co.uk

The problem is the old menu is vertical and the new layout will have a horizontal menu so Im not sure what I need to change, could someone help me understand some of the code so I can adapt it to my new layout, I understand that Im asking for free help but is the season of giving and all that

This is the java script:

<?php
?>
<script language="JavaScript" type="text/javascript">
<!--//--><![CDATA[//><!--
startList = function() {
if (document.all&&document.getElementById) {
navRoot = document.getElementById("sidenav");
for (i=0; i<navRoot.childNodes.length; i++) {
node = navRoot.childNodes[i];
if (node.nodeName=="LI") {
node.onmouseover=function() {
this.className+=" over";
}
node.onmouseout=function() {
this.className=this.className.replace(" over", "");
}
}
}
}
}
window.onload=startList;

//--><!]]>
</script>


This is the CSS:

.navbg { background:url(/images/navbg.gif) repeat-y;}

.slidedoormenu{
list-style-type: none; margin:0 auto;
padding: 0;
width: 210px; /* width of menu (don't forget to add border with below!) */
border-left: 0px solid #ffa1a3; /* thick left border of menu */

}

.slidedoormenu li{
border-bottom: 1px solid #D6D6D6; /* Gray border beneath each menu item */
}

.slidedoormenu li a{
background: white url(/images/vstrip.gif) repeat-y left top; /* Background image positioned to the left(v) top(h) corner initially */
font: bold 18px calibri, Trebuchet MS;
display: block;
color: black;
width: auto;
border-bottom: 0px solid white; /* White border beneath each menu item link, to add depth */
padding: 5px 0; /* Vertical (top/bottom) padding for each menu link */
text-indent: 8px;
text-decoration: none;
}

.slidedoormenu li a:visited, .slidedoormenu li a:active{
color: black;
}

.slidedoormenu li a:hover{
background-position: -387px 0; /* Shift background image horizontally 387px, or the start of the 2nd background image */
color: #ffffff;
}

.slidedoormenu li.lastitem, .slidedoormenu li.lastitem a{
border-bottom-width: 0; /* For last menu item within menu, remove bottom border */
}

.slidedoormenu li.lastitem a{
padding: 6px 0; /* increase vertical border of last menu link by 2px (default is padding: 7px 0) to account for removed border width */
}
__________________

Please login or register to view this content. Registration is FREE
- Fire Alarms, Security and Electrical
electrifire is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 12-09-2009, 02:39 PM Re: PHP Menu
LadynRed's Avatar
Defies a Status

Posts: 10,017
Location: Tennessee
Trades: 0
In order to turn a vertical list to a horizontal list, add display: inline to the <li> properties. OR, you could float the <li> to get them to horizontal.
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

LadynRed is offline
Reply With Quote
View Public Profile
 
Old 12-10-2009, 05:38 AM Re: PHP Menu
Skilled Talker

Posts: 97
Trades: 0
thank you I'll give it a go when I get the new design
__________________

Please login or register to view this content. Registration is FREE
- Fire Alarms, Security and Electrical
electrifire is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to PHP Menu
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.85693 seconds with 12 queries