PDA

View Full Version : Help Me Please with my navbar


doglips
Mar-05-2009, 07:28 PM
HTML Code

</div>
<!-- CSS Dropdown Nav Bar -->
<!-- Original code by Stu Nicholls of -->
<!-- http://www.cssplay.co.uk/ -->
<!-- Edited by me for content, formatting, and some elements -->
<!-- Please help support CSSPlay at: -->
<!-- http://www.cssplay.co.uk/support.html -->

<div align="center">

<div class="menu">

<ul>

<!-- First Main Menu Item -->

<li><a class="drop" href="http://www.velosportphoto.com" title="velosportphoto">Home<!--[if IE 7]><!--></a><!--<![endif]-->
<!--[if lte IE 6]><table><tr><td><![endif]-->


<!-- Next Main Menu Item -->

<li><a class="drop" href="http://www.velosportphoto.com/Cycling" title="Cycling">Cycling<!--[if IE 7]><!--></a><!--<![endif]-->
<!--[if lte IE 6]><table><tr><td><![endif]-->




<!-- Next Main Menu Item -->

<li><a href="http://www.velosportphoto.com/swimming" title="Swimming!">Swimming<!--[if IE 7]><!--></a><!--<![endif]-->
<!--[if lte IE 6]><table><tr><td><![endif]-->

<ul>

<li><a href="http://www.velosportphoto.com/gallery/7183397_yRP5A#461206288_gFPfM" title="WCSC">Swimmers</a></li>
<li><a href="http://www.velosportphoto.com/gallery/7181176_Yghqs#461029564_Wt7N7" title="Faces">Faces</a></li>

</ul> <!--[if lte IE 6]></td></tr></table></a><![endif]-->

</li>

<!-- Next Main Menu Item -->

<li><a href="http://www.velosportphoto.com/" title="Coming Soon">Field<!--[if IE 7]><!--></a><!--<![endif]-->
<!--[if lte IE 6]><table><tr><td><![endif]-->

<ul>

<li><a href="http://www.velosportphoto.com/" title="Baseball Red Sox">Baseball</a></li>
<li><a href="http://www.velosportphoto.com/" title="Walnut Creek Warriors">Lacrosse</a></li>

</ul> <!--[if lte IE 6]></td></tr></table></a><![endif]-->

</li>


<!-- Next Main Menu Item -->

<li><a href="http://www.velosportphoto.com/gallery/7345989_dLJpp/" title="Up Coming Events!">Events<!--[if IE 7]><!--></a><!--<![endif]-->
<!--[if lte IE 6]><table><tr><td><![endif]-->
<!--[if lte IE 6]></td></tr></table></a><![endif]-->
</li>


<!-- Next Main Menu Item -->

<li><a href="http://www.velosportphoto.com/ " title="AboutUs!">Contact Us<!--[if IE 7]><!--></a><!--<![endif]-->
<!--[if lte IE 6]><table><tr><td><![endif]-->

<ul>


<li><a href="http://www.velosportphoto.com/gallery/7345587_FGsjL/" title="Jim Cooper, Wil Matthews">About Us </a></li>
<li><a href=" mailto:info@velosportphoto.com " title="Email">Email</a></li>

</ul> <!--[if lte IE 6]></td></tr></table></a><![endif]-->

</li>





</ul>

</div>
</div>
<!-- End Navbar Code -->


CSS Code

/* CSS Section */

/* style the outer div to give it width */
.menu {
margin: auto;
padding:10px 0px 15px 0px;
position:relative; /*Make the container moveable*/
width:750px; /*Main bar total width*/
font-size:0.85em;
padding-bottom:30px; /*Padding between the bottom of your mainbar and the rest of your page */
}
/* remove all the bullets, borders and padding from the default list styling */
.menu ul {
padding:0;
margin:0;
list-style-type:none;
}
.menu ul ul {
width:125px; /* Cell size. Divide the main width (750px) by the number of cells you need */
}
/* float the list to make it horizontal and a relative positon so that you can control the dropdown menu positon */
.menu li {
float:left;
width:125px; /* Cell size. Divide the main width (750px) by the number of cells you need */
position:relative;
}
/* style the links for the top level */
.menu a, .menu a:visited {
display:block;
font-size:9px;
text-decoration:none;
color:#fff;
width:100; /* Defines the main box dimensions. */
height:30px; /*How tall your cells are*/
border:1px solid #333;
border-width:1px 1px 0 0;
background:#333;
padding-left:10px;
line-height:29px; /*Adjust this to vertically center your text in each cell. Should be about the same as height. */font-family: "Century Gothic"; font-variant: small-caps; letter-spacing: 1pt;font-size: 10pt
}
/* a hack so that IE5.5 faulty box model is corrected */
* html .menu a, * html .menu a:visited {
width:125px;
w\idth:139px;
}

/* style the second level background */
.menu ul ul a.drop, .menu ul ul a.drop:visited {
background:#949e7c;
}
/* style the second level hover */
.menu ul ul a.drop:hover{
background:#c9ba65;
}
.menu ul ul :hover > a.drop {
background:#c9ba65;
}
/* style the third level background */
.menu ul ul ul a, .menu ul ul ul a:visited {
background:#e2dfa8;
}
/* style the third level hover */
.menu ul ul ul a:hover {
background:#b2ab9b;
}
.menu ul ul ul :hover > a {
background:#b2ab9b;
}

/* hide the sub levels and give them a positon absolute so that they take up no room */
.menu ul ul {
visibility:hidden;
position:absolute;
height:0;
top:31px;
left:0;
width:125px; /* Size of the daughter cells */
}
/* another hack for IE5.5 */
* html .menu ul ul {
top:30px;
t\op:31px; /* IE gap between main bar and the dropdown items */
}


/* position the third level flyout menu */
.menu ul ul ul{
left:125px;
top:0;
width:125px;
}
/* position the third level flyout menu for a left flyout */
.menu ul ul ul.left {
left:-125px;
}

/* style the table so that it takes no ppart in the layout - required for IE to work */
.menu table {position:absolute; top:0; left:0;}

/* style the second level links */
.menu ul ul a, .menu ul ul a:visited {
background:#d4d8bd;
color:#000;
height:auto;
line-height:1em;
padding:5px 10px;
width:129px
/* yet another hack for IE5.5 */
}
* html .menu ul ul a{
width:125px;
w\idth:129px;
}


/* style the top level hover */
.menu a:hover, .menu ul ul a:hover{
color:#333;
background:#949e7c;
}
.menu :hover > a, .menu ul ul :hover > a {
color:#333;
background:#949e7c;
}

/* make the second level visible when hover on first level list OR link */
.menu ul :hover ul{
visibility:visible;
}
/* keep the third level hidden when you hover on first level list OR link */
.menu ul :hover ul ul{
visibility:hidden;
}
/* keep the fourth level hidden when you hover on second level list OR link */
.menu ul :hover ul :hover ul ul{
visibility:hidden;
}
/* make the third level visible when you hover over second level list OR link */
.menu ul :hover ul :hover ul{
visibility:visible;
}
/* make the fourth level visible when you hover over third level list OR link */
.menu ul :hover ul :hover ul :hover ul {
visibility:visible;
}

/* End Navbar Code */

Carerra
Mar-08-2009, 02:07 PM
Doac ring a bell?