Okay, here's the code...this is my first stab at a CSS-Driven drop down and it's almost there...but not quite. The top two links in the dropdown work, though they aren't formatted the way I want, but the two lower ones disappear when you get to them.
Here's the code:
I totally don't know what's going on here...it won't even work in FF. It just displays the list-items in a line. It doesn't even hide the ones that don't need to be seen at first.Code:<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <title>Untitled</title> <style> body { behavior:url(csshover.htc); background: #004a2b; text-align:center; font: 11px, Verdana; margin: 5px; } * { margin: 0px; padding: 0px; } h1 { font: bold 18px Arial; color: #004a2b; padding: .5em; } p { padding: 5px; } #mainContainer { margin: 0 auto; padding: 5px; width:99%; background: #fff; text-align:left; } .topLog { text-align:right; white-space:nowrap; padding: 0 0 3px 0; } .topLog span { float:left; width:5em; text-align:left; } #header { background: #e8e8c8; text-align: right; } #header span { float: left; } /************** Navigation ********************/ div#nav { background: url(imgs/backgrdNav.gif); height: 2.6em; width: 100%; vertical-align:center; } div#nav ul { list-style: none; padding: 0; margin: 0; } div#nav li { position:relative; float: left; } div#nav li a { display: block; height: 2.6em; line-height: 2.6em; float: left; width: 12em; color: #fff; font-weight: bold; text-decoration: none; text-align: center; } div#nav li a:hover { display: block; background: url(imgs/backgrdNav_orange.gif); height: 2.6em; line-height: 2.6em; float: left; width: 12em; color: #fff; font-weight: bold; text-decoration: none; text-align: center; } /* the drop-down starts here */ div#nav ul li ul { position:absolute; width:10em; left:-1px; } div#nav ul li ul li { width:100%; border-left:1px solid #eb7c00; border-bottom:1px solid #eb7c00; border-right:1px solid #eb7c00; background: #e8e8c8; } /* make the drop-down display as the menu is rolled over */ div#nav ul li ul { display:none; } /* conceals the drop-down when menu not hovered */ div#nav ul li:hover ul { display:block; } /* shows the drop-down when the menu is hovered */ /************** End Navigation ********************/ #bCrumb { padding: 5px; } strong { color: #004a2b; } #instruct { position:relative; padding: 0 0 0 3.5em; width: 35em; line-height: 1.3em; color: #4c4c4c; float:left; } #filterBox { border: 1px solid #ccc; background: #e8e8c8; width:35%; margin: 0 0 0 3em; padding: 5px; position: relative; float:left; } /* clear method needed to keep two div's from wrapping in IE */ .clear { clear:both; } /************** Table Specific Tags ********************/ table { width: 100%; border-collapse: collapse; } caption { font: bold 16px Arial; color: #406940; text-align:left; padding: 15px 0 3px 0; } td { padding: 3px; text-align:right; } th { background-color:#004A2A; color: #fff; text-align:right; } .mediumgreenLabel { background-color:#569264; color: #fff; font: bold 10px Verdana; } .alt { background-color: #E8E8C8; } /************** End Table Specific Tags ********************/ #footer { background: #004a2b; height: 35px; line-height: 35px; vertical-align:center; text-align: right; padding: 0 0 0 10px; margin:5em 0 0 0; } #footer span { float:left; color: #fff; padding: 0 0 5px 0; } a:link, a:active, a:visited { text-decoration: underline; color: #ec7c01; } a:hover { text-decoration: none; } </style> </head> <body> <!-- begin content --> <div id="mainContainer"> <p class="topLog"><span>You are representing <strong>Someone</strong></span>Welcome <strong>Super User</strong> | <a href="log">Log out</a></p> <!-- beginning header with NAV --> <div id="header"> <span><img src="imgs/agr_logo.jpg" width="148" height="75" /></span><img src="imgs/topImg.jpg" id="topImg" name="topImg" width="465" height="75" alt="Image of Sifter" /> </div> <!-- end header --> <!-- begin nav --> <div id="nav"> <ul> <li><a href="#">Home</a></li> <li><a href="#">Position</a></li> <ul> <!-- drop down menu items --> <li><a href="#">Reports</a></li> <li><a href="#">Purchases</a></li> <li><a href="#">Sales</a></li> <li><a href="#">Inventory Adjustments</a></li> </ul> <li><a href="#">Profiles</a></li> <li><a href="#">Administration</a></li> <li><a href="#">Help</a></li> </ul> </div> <!-- end nav --> <!-- begin content area divs --> <div id="bCrumb"><a href="index.html">Home</a> > Position Review</div> <div id="textFld"> <h1>Purchases</h1> <div id="instruct"> <p>INSTRUCTIONS: Use the filter to view all purchase or sale transactions that have been entered for your location. Once your position report is generated, based on the specified criteria, use the buttons at the bottom of the page to add new transactions. The “Edit” hyperlink to the right of transactions that have already been entered will allow you to make any changes needed.</p> <p><input type="Checkbox"> Show All Order Details</p> </div> <div id="filterBox"> </div> <p class="clear"></p> <div id="tableBox"> **table goes here ** </div> </div> <!-- end content area divs --> <!-- begin footer --> <div id="footer"> <span>Copyright © 2006. All rights reserved. <a href="#">Contact Us</a> | <a href="#">User Agreement</a> | <a href="#">Privacy Policy</a> | <a href="#">Terms of Use</a></span><img src="imgs/Logo_bottom.gif" width="79" height="35" alt="" /> </div> <!-- end footer --> </div> <!-- end container --> </body> </html>
Any help would be greatly appreciated.
Here's what I'm going for. example








.
Bookmarks