canadabeeau Posted December 28, 2009 Share Posted December 28, 2009 I have a list acting as a drop down CSS /****************************** DROPDOWN ******************************/ ul.dropdown, ul.dropdown li, ul.dropdown ul { list-style: none; margin: 0; padding: 0; color: #660000; } ul.dropdown { position: relative; z-index: 597; float: left; color: #660000; } ul.dropdown li { float: left; line-height: 1.3em; vertical-align: middle; zoom: 1; padding: 7px 12px; color: #660000; } ul.dropdown li.hover, ul.dropdown li:hover { position: relative; z-index: 599; cursor: default; text-decoration: none; } ul.dropdown ul { visibility: hidden; position: absolute; top: 100%; left: 0; z-index: 598; width: 100%; } ul.dropdown ul li { float: none; } ul.dropdown ul ul { top: 1px; left: 99%; } ul.dropdown li:hover > ul { visibility: visible; } ul.dropdown li.rtl ul { top: 100%; right: 0; left: auto; } ul.dropdown li.rtl ul ul { top: 1px; right: 99%; left: auto; } ul.dropdown { font: bold 12px Constantia; } ul.dropdown a:link, ul.dropdown a:visited { color: #660000; text-decoration: none; } ul.dropdown a:hover { color: #660000; text-decoration: none; } ul.dropdown a:active { color: #660000; } ul.dropdown ul { margin-left: 6px; width: 170px; padding-bottom: 9px; /* background-color: #161616; */ background-image: url(img/nav.png); color: #000000; font-size: 11px; font-weight: normal; } ul.dropdown ul li { background-color: transparent; color: #660000; } ul.dropdown ul li.hover, ul.dropdown ul li:hover { background-color: transparent; } ul.dropdown ul li.empty { padding: 12px 12px 7px !important; font-weight: bold; } ul.dropdown ul a:link, ul.dropdown ul a:visited { color: #000000; } ul.dropdown ul a:hover { color: #000000; text-decoration: none; } ul.dropdown ul a:active { color: #000000; } ul.dropdown ul ul { display: none; } ul.dropdown ul ul li {} ul.dropdown *.dir {padding-right: 12px; background-image: none; background-position: 100% 50%; background-repeat: no-repeat; } ul.dropdown-horizontal ul *.dir { padding-right: 15px; background-image: url(img/nav-arrow-right.png); background-position: 100% 50%; background-repeat: no-repeat; } ul.dropdown-vertical *.dir { background-image: url(img/nav-arrow-right.png); } ul.dropdown-vertical-rtl *.dir { padding-right: 15px; background-image: url(img/nav-arrow-left.png); background-position: 0 50%; } ul.dropdown li a { display: block; padding: 7px 12px; } ul.dropdown li { padding: 0; } ul.dropdown li.dir { padding: 7px 20px 7px 12px; } ul.dropdown ul li.dir { padding-right: 15px; } ul.dropdown li { } ul.dropdown ul a { padding: 4px 5px 4px 12px; } ul.dropdown ul a:hover { padding: 3px 5px 3px 11px; border: solid 1px #FFC000; color: #000000; background-color: #FFFFFF; font-weight: bold; } ul.dropdown ul a.dir { } HTML <ul id="nav" class="dropdown dropdown-horizontal"> <li><a href="<?php echo 'http://'.$_SERVER['HTTP_HOST'].'';?>/company" class="dir">Company</a> <ul> <li class="empty">Profile</li> <li><a href="<?php echo 'http://'.$_SERVER['HTTP_HOST'].'';?>/company/about">About</a></li> <li><a href="<?php echo 'http://'.$_SERVER['HTTP_HOST'].'';?>/company/history">History</a></li> <li><a href="<?php echo 'http://'.$_SERVER['HTTP_HOST'].'';?>/company/portfolio">Portfolio</a></li> <li><a href="<?php echo 'http://'.$_SERVER['HTTP_HOST'].'';?>/legal">Legal</a></li> <li><a href="<?php echo 'http://'.$_SERVER['HTTP_HOST'].'';?>/partners">Official Tecnology Partners</a></li> <li class="empty">Managment</li> <li><a href="<?php echo 'http://'.$_SERVER['HTTP_HOST'].'';?>/managment/managingdirector">Managing Director</a></li> <li><a href="<?php echo 'http://'.$_SERVER['HTTP_HOST'].'';?>/managment/boardofdirectors">Board of Directors</a></li> <li class="empty">Contact</li> <li><a href="<?php echo 'http://'.$_SERVER['HTTP_HOST'].'';?>/contact/asiaoceania">Asia / Oceania</a></li> <li><a href="<?php echo 'http://'.$_SERVER['HTTP_HOST'].'';?>/contact/europe">Europe</a></li> <li><a href="<?php echo 'http://'.$_SERVER['HTTP_HOST'].'';?>/contact/americas">Americas</a></li> </ul> </li> <li><a href="<?php echo 'http://'.$_SERVER['HTTP_HOST'].'';?>/forefront" class="dir">Forefront</a> <ul> <li><a href="<?php echo 'http://'.$_SERVER['HTTP_HOST'].'';?>/forefront">Forefront</a></li> <li><a href="<?php echo 'http://'.$_SERVER['HTTP_HOST'].'';?>/opensource">Open Source</a></li> </ul> </li> <li><a href="<?php echo 'http://'.$_SERVER['HTTP_HOST'].'';?>/solutions" class="dir">Solutions</a> <ul> <li class="empty">Consulting</li> <li><a href="<?php echo 'http://'.$_SERVER['HTTP_HOST'].'';?>/consulting/newinfrastructure">New Infrastructure</a></li> <li><a href="<?php echo 'http://'.$_SERVER['HTTP_HOST'].'';?>/consulting/existinginfrastructure">Existing Infrastructure</a></li> <li class="empty">Software</li> <li><a href="<?php echo 'http://'.$_SERVER['HTTP_HOST'].'';?>/legal/generalsla">2009/2010 Products</a></li> <li><a href="<?php echo 'http://'.$_SERVER['HTTP_HOST'].'';?>/legal/generalsla">Software Development</a></li> <li><a href="<?php echo 'http://'.$_SERVER['HTTP_HOST'].'';?>/legal/generalsla">Software License Agreement</a></li> <li class="empty">Web Based Services</li> <li><a href="<?php echo 'http://'.$_SERVER['HTTP_HOST'].'';?>/webbasedservices/hostingdomains">Web-hosting & Domains</a></li> <li><a href="<?php echo 'http://'.$_SERVER['HTTP_HOST'].'';?>/webbasedservices/design">Website Design</a></li> </ul> </li> <li><a href="<?php echo 'http://'.$_SERVER['HTTP_HOST'].'';?>/publishing" class="dir">Publishing</a> </li> <li><a href="<?php echo 'http://'.$_SERVER['HTTP_HOST'].'';?>/login/" class="dir">Portals</a> <ul> <li><a href="<?php echo 'http://'.$_SERVER['HTTP_HOST'].'';?>/portals/privacy/">Privacy Access Portral</a></li> <li class="empty">Customer</li> <li><a href="<?php echo 'http://'.$_SERVER['HTTP_HOST'].'';?>/portals/customers/">Customer Portal Services</a></li> <li class="empty">Employees</li> <li><a href="<?php echo 'http://'.$_SERVER['HTTP_HOST'].'';?>/portals/employees/">Employee Portal Services</a></li> <li><a href="<?php echo 'http://'.$_SERVER['HTTP_HOST'].'';?>/administration/">RKcms Administration</a></li> </ul> </li> </ul> Now it is in its own div and when I hover over the drop downs cutoff where the next div starts, how can I fix this? Quote Link to comment https://forums.phpfreaks.com/topic/186486-lists/ Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.