Help needed with CSS drop down menu
Hi guys,
I'm trying to build a drop down menu for my site but, despite seeing a few tutorials and examples, I've had no luck yet!
I'm pretty sure my HTML is correct...
Code:
<ul id="nav">
<li><a href="#">Menu 1</a></li>
<li><a href="#">Menu 2</a></li>
<li><a href="#">Menu 3</a>
<ul>
<li><a href="#">Drop Down 1</a></li>
<li><a href="#">Drop Down 2</a></li>
<li><a href="#">Drop Down 3</a></li>
<li><a href="#">Drop Down 4</a></li>
</ul>
</li>
<li><a href="#">Menu 4</a></li>
<li><a href="#">Menu 5</a></li>
</ul>
My CSS looks like this at the moment...
Code:
ul#nav {width:920px; height:35px; list-style:none; padding:0; margin:0; background:url(navBg.jpg) repeat-x; font-family:'OpenSansRegular'; font-size:11px; font-weight:700; text-transform:uppercase; -moz-box-shadow:0px 0px 10px #1c1c1c; -webkit-box-shadow:0px 0px 10px #1c1c1c; box-shadow:0px 0px 10px #1c1c1c; z-index:999;}
ul#nav li a:hover, #nav li a:active {background:url(navOn.jpg) repeat-x; text-decoration:none;}
ul#nav li a {border-right:1px solid #000; color:#E0E2E7; display:inline-block; float:left; margin:0; padding:10px 19px; width:auto; text-decoration:none;}
* html #nav li {display:inline; float:left; } /* for IE 6 */
* + html #nav li {display:inline; float:left; } /* for IE 7 */
ul#nav li ul {left:-9999px; position:absolute; list-style:none;}
ul#nav li:hover ul {left:0; position:absolute;}
ul#nav li ul li {}
ul#nav li ul li a {width:230px; background-color:#efefef; color:#2e2e2e; font-family:Arial, Helvetica, sans-serif; font-size:10px; font-weight:normal; border-bottom:solid 1px #FFF; padding:7px; margin:0;}
ul#nav li ul li a:hover {background-color:#028efd; background-image:none; color:#FFF;}
I'm really struggling with this. Does anyone know how I can get Menu 3 to display the four drop down items beneath it - not the same width as the Menu 3 button but just inline with it.
Thank you very much and I hope to hear from you.
SM
Try this. It's been adapted from a menu I previously made on another site.
#menu {width:920px; height:35px; padding:0; margin:0; background:url(navBg.jpg) repeat-x; -moz-box-shadow:0px 0px 10px #1c1c1c; -webkit-box-shadow:0px 0px 10px #1c1c1c; box-shadow:0px 0px 10px #1c1c1c;}
ul#nav a {font: 700 11px 'OpenSansRegular', arial, helvetica, sans-serif; text-transform:uppercase; margin:0; padding:5px 15px; line-height:25px; color: #666; text-decoration: none; display:block; list-style: none;}
ul#nav a:hover, ul#nav a.active {color: #999; background:url(navOn.jpg) repeat-x; text-decoration:none;}
ul#nav {position: relative; margin: 0; padding: 0;}
ul#nav ul {display: none;}
* html #nav li {display:block; float:left; } /* for IE 6 */
* + html #nav li {display:block; float:left; } /* for IE 7 */
ul#nav li, ul#nav li li {position: relative; float: left; list-style: none; border-right:1px solid #000;}
ul#nav li:hover ul {position: absolute; top: 35px; left: -1px; display:block; padding: 0; margin: 0;}
ul#nav li li {width:230px; background-color:#efefef; color:#000; font: normal 10px 'OpenSansRegular', arial, helvetica, sans-serif; border-bottom:solid 1px #FFF; border-right:none; border-left:1px solid #000; padding:0 5px;}
ul#nav li li:hover, ul#nav li li a:hover {background-color:#028efd; color:#FFF;}
<body>
<div id="menu">
<ul id="nav">
<li><a href="#">Menu 1</a></li>
<li><a href="#">Menu 2</a></li>
<li><a href="#">Menu 3</a>
<ul>
<li><a href="#">Drop Down 1</a></li>
<li><a href="#">Drop Down 2</a></li>
<li><a href="#">Drop Down 3</a></li>
<li><a href="#">Drop Down 4</a></li>
</ul>
</li>
<li><a href="#">Menu 4</a></li>
<li><a href="#">Menu 5</a></li>
</ul>
</div>
</body>
Similar Messages
-
Need help fixing a CSS Drop-Down menu for IE6
Hello.
I have created an entirely CSS drop down menu for my website
which works perfect in Firefox, Safari, Opera and IE7 however when
I tested in IE6 it displayed like this -->
image
here or go to http://www.runecentral.net/index.php (Must have
/index.php as i have redirected / to the community forum.)
Here is my codeThank you for your reply.
To answer your first question, I tried it with just one
before and it caused Internet Explorer to display the background
incorrectly so I just kept them both.
I have replaced background-image with background:
url(/img/defmenu.png) repeat-x;
But, I cannot access my XP machine until tomorrow so I cannot
view the site in IE6, if you could test it and tell me if it is the
same as the image linked to in my first post that would be great.
Kind Regards,
Perry -
Hi, i am new to PDF forms & need to make drop down menu with pictures, how do i do that ?
some one suggested to use coding to achieve similar results, but i don't know where and how to use it, please help!Sorry, images in drop downs are not supported by Formscentral.
Andrew -
"undefined" appearing next to text in CSS Drop-Down menu, why?
Hello everyone,
I am having a problem with a CSS drop-down menu. The menu works fine, as you can see here:
http://littlebuddymedia.com/help/011.html
But the text "undefined" appears next to the main menu options. My question is, why?
I have narrowed the problem down to this chunk of code:
<div class="chromestyle" id="chromemenu">
<ul>
<li><a href="http://www.dynamicdrive.com">Home</a></li>
<li><a href="#" rel="dropmenu1">Resources</a></li>
<li><a href="#" rel="dropmenu2">News</a></li>
<li><a href="#" rel="dropmenu3">Search</a></li>
</ul>
</div>
If you remove the rel="dropmenu1" portion of the code, the word "undefine" no longer appears, but then the menu doesnt drop-down anymore.
Any ideas?
If it is needed:
Here is the CSS file: http://littlebuddymedia.com/help/chrometheme/chromestyle.css
Here is the JS file:http://littlebuddymedia.com/help/chromejs/chrome.js
Thank you.When I use FF to view the generated source, I see this -
<li><a href="#" rel="dropmenu1">Resources undefined</a></li>
<li><a href="#" rel="dropmenu2">News undefined</a></li>
<li><a href="#" rel="dropmenu3">Search undefined</a></li>
The undefined is coming from the javascript functions that you have loaded in that external file. This function call is what starts it -
<script type="text/javascript">
cssdropdown.startchrome("chromemenu")
</script>
If you want 100% reliable drop menus that have been exhaustively tested in all common browsers/platforms, check the ones available from http://www.projectseven.com. -
How to create a button with the drop-down menu?
I want to create a button with the drop-down menu, which is like the 'back' on the tollbar in IE. I heard JPopupMenu can reach the certain result, but the button hadn't a down arrow. Who can help me?
i have made something like this :
//======================================================================
package com.ju.guiutils
import java.awt.*;
import java.awt.event.*;
import java.net.URL;
import java.util.Vector;
import javax.swing.*;
import javax.swing.border.*;
import javax.swing.event.*;
import javax.swing.plaf.basic.BasicComboBoxUI;
* @version 1.0 14/04/02
* @author Syed Arshad Ali <br> [email protected]<br>
* <B>Usage : </B> ButtonsCombo basically performs function button + JComboBox, if we have different options for
* <BR>same button then we can use this ButtonsCombo.
*<BR> By the way there is no button at all in <I>ButtonsCombo</I>
public class ButtonsCombo extends JComboBox {
//===================================================================================
* Create ButtonsCombo with default combobox model
public ButtonsCombo () {
super ();
init ();
//===================================================================================
* Creates a ButtonsCombo that takes it's items from an existing ComboBoxModel.
public ButtonsCombo ( ComboBoxModel model ) {
super ( model );
init ();
//===================================================================================
* Creates a ButtonsCombo that contains the elements in the specified array.
public ButtonsCombo ( Object [] items ) {
super ( items );
init ();
//===================================================================================
* Creates a ButtonsCombo that contains the elements in the specified Vector.
public ButtonsCombo ( Vector items ) {
super ( items );
init ();
//===================================================================================
private void init () {
setBorder ( BorderFactory.createBevelBorder ( BevelBorder.RAISED ) );
setRenderer ( new ComboRenderer() );
setUI ( new ComboUI() );
addMouseListener ( new ComboMouseListener() );
//===================================================================================
* Set items for ButtonsCombo in the specified array
public void setItems ( Object [] items ) {
setModel ( new DefaultComboBoxModel( items ) );
//```````````````````````````````````````````````````````````````````````````````````
* Set items for ButtonsCombo in the specified Vector
public void setItems ( Vector items ) {
setModel ( new DefaultComboBoxModel( items ) );
//```````````````````````````````````````````````````````````````````````````````````
* Get current items in a array
public Object [] getItemsArray () {
ComboBoxModel model = this.getModel ();
if ( model != null ) {
int size = model.getSize ();
if ( size > 0 ) {
Object [] items = new Object[ size ];
for ( int i = 0; i < size; i++ ) {
items[ i ] = model.getElementAt ( i );
return items;
return null;
//```````````````````````````````````````````````````````````````````````````````````
* Get current items in a Vector
public Vector getItemsVector () {
ComboBoxModel model = this.getModel ();
if ( model != null ) {
int size = model.getSize ();
if ( size > 0 ) {
Vector itemsVec = new Vector();
for ( int i = 0; i < size; i++ ) {
itemsVec.addElement ( model.getElementAt ( i ) );
return itemsVec;
return null;
//===================================================================================
class ComboMouseListener extends MouseAdapter {
public void mouseClicked ( MouseEvent me ) {
ButtonsCombo.this.hidePopup ();
public void mousePressed ( MouseEvent me ) {
ButtonsCombo.this.hidePopup ();
ButtonsCombo.this.setBorder ( BorderFactory.createBevelBorder ( BevelBorder.LOWERED ) );
public void mouseReleased ( MouseEvent me ) {
ButtonsCombo.this.hidePopup ();
ButtonsCombo.this.setBorder ( BorderFactory.createBevelBorder ( BevelBorder.RAISED ) );
//===================================================================================
class ComboRenderer extends JLabel implements ListCellRenderer {
//````````````````````````````````````````````````
public ComboRenderer () {
setOpaque ( true );
//````````````````````````````````````````````````
public Component getListCellRendererComponent ( JList list, Object value, int index, boolean isSelected, boolean cellHasFocus ) {
setBackground ( isSelected ? Color.cyan : Color.white );
setForeground ( isSelected ? Color.red : Color.black );
setText ( ( String )value );
return this;
//````````````````````````````````````````````````
//===================================================================================
// We have to use this class, otherwise we cannot stop JComboBox's popup to go down
class ComboUI extends BasicComboBoxUI {
public JButton createArrowButton () throws NullPointerException {
try {
URL url = getClass ().getResource ( "/images/comboarrow.gif" );
JButton b = new JButton( new ImageIcon( url ) );
b.addActionListener ( new ActionListener() {
public void actionPerformed ( ActionEvent ae ) {
return b;
} catch ( NullPointerException npe ) {
throw new NullPointerException( "/images/comboarrow.gif not found or /images folder not in classpath" );
catch ( Exception e ) {
e.printStackTrace ();
return null;
//======================================================================
you can cutomize this according to your requirement , okie ;) -
I'm new to AS3, this script is from an xml drop down menu. I
need to change all the font to " Gil Sans Lite: I looked down the
string and only see a place to change fonts twice which I did. But
the original font remains in the 1st button, the drop downs were
changed. I also needed to align the buttona as my stage is bigger
looking for the x/y elements but I was so tired I must have missed
them. The seperate xml script only lets you change the text, amount
of menus and urls. Any help?Thanks for the info, as I said I'm new to AS3 so I would need
to know exactly where in the script I would insert this
(Also the font is on my mac so it would be the font folder/,
font name "Gil Sans Lite" ='NavItemFont'
package {
import flash.display.Sprite;
public class NavItemFont extends Sprite {
[Embed(source='C:/WINDOWS/Fonts/FRAMDCN.TTF',
fontName='NavItemFont', whats the unicode range?
unicodeRange='U+0020-U+002F,U+0030-U+0039,U+003A-U+0040,U+0041-U+005A,U+005B-U+0060,U+006 1-U+007A,U+007B-U+007E')]
public static var NavItemFont:Class;
and second it says" Render this out - so it is now
NavItemFont.swf" does that mean change the original fla name and
export it as NavItemFont.swf"?
Also " Then in another flash app - load the external swf as
an asset, and on-load register the font - which will make it
global. You can now change NavItemFont.swf externally and it will
change in your app everywhere. Can you explain?
thx -
Help with inserting drop down menu/pricing in Muse site
I know this is not a feature available directly in Muse, but are there other sites where I could get code to insert? View this website , the box on the right side where you can select from 3 dropdown menus and you get an updated price at the top. I don't care so much about the add to care function, I just want to have the dropdown/pricing.
The HTML code for a drop-down menu is as follows:
<select>
<option>Item 1: $9.95</option>
<option>Item 2: $19.95</option>
<option>Item 3: $29.95</option>
</select>
You can add this code by clicking Option-> Insert HTML...
Here is a good tutorial for drop-down menus.
http://www.echoecho.com/htmlforms11.htm
Hope this helps,
Julia -
CSS Drop down menu; how to align the right edge of drop down and parent menu?
Hello everyone,
I have a drop-down menu that is currently working well.
The only change I need to make is to have the right edge of the drop-down menu to align with the right edge of the parent menu. When you hover over the menu, it currently "drops" down and to the right, with the left edges aligned.
I want the menu to "drop" down and to the left, so the right edges are aligned.
I have tried fiddling with floats and absolute/relative positioning. I'm not sure what needs to be changed.
Any help you can provide is greatly appreciated! I'm learning via "cut and paste", so please go easy on any terminology you may use.
Thank you!
Here is my code:
.chromestyle{
width: 100%;
font-weight: bold;
float: left;
height: 29px;
.chromestyle:after{ /*Add margin between menu and rest of content in Firefox*/
content: ".";
display: block;
height: 0;
clear: both;
visibility: hidden;
.chromestyle ul{
border: 0px solid #BBB;
width: 100%;
background: url(chromebg.gif) center center repeat-x; /*THEME CHANGE HERE*/
padding: 4px 0;
margin: 0;
text-align: right; /*set value to "left", "center", or "right"*/
.chromestyle ul li{
display: inline;
.chromestyle ul li a{
color: #000000;
padding: 4px 7px;
margin: 0;
text-decoration: none;
border-left: 1px solid #DADADA;
.chromestyle ul li a:hover, .chromestyle ul li a.selected{ /*script dynamically adds a class of "selected" to the current active menu item*/
background: url(chromebg-over.gif) center center repeat-x; /*THEME CHANGE HERE*/
/* ######### Style for Drop Down Menu ######### */
.dropmenudiv{
position:absolute;
top: 0;
border: 1px solid #BBB; /*THEME CHANGE HERE*/
border-bottom-width: 0;
font:normal 12px Verdana;
line-height:18px;
z-index:100;
background-color: white;
width: 200px;
visibility: hidden;
.dropmenudiv a{
width: auto;
display: block;
text-indent: 3px;
border-bottom: 1px solid #BBB; /*THEME CHANGE HERE*/
padding: 2px 5px;
text-decoration: none;
font-weight: bold;
color: black;
* html .dropmenudiv a{ /*IE only hack*/
width: 100%;
.dropmenudiv a:hover{ /*THEME CHANGE HERE*/
background-color: #0000ff;
color: #fff200;Try this:
.chromestyle{
font-weight: bold;
height: 29px;
.chromestyle:after{ /*Add margin between menu and rest of content in Firefox*/
content: ".";
display: block;
height: 0;
clear: both;
visibility: hidden;
.chromestyle ul{
border: 0px solid #BBB;
width:100%;
background: url(chromebg.gif) center center repeat-x; /*THEME CHANGE HERE*/
padding: 4px 0;
margin: 0;
text-align: left; /*set value to "left", "center", or "right"*/
.chromestyle ul li{
display: inline;
.chromestyle ul li a{
color: #000000;
padding: 4px 7px;
margin: 0;
text-decoration: none;
border-left: 1px solid #DADADA;
.chromestyle ul li a:hover, .chromestyle ul li a.selected{ /*script dynamically adds a class of "selected" to the current active menu item*/
background: url(chromebg-over.gif) center center repeat-x; /*THEME CHANGE HERE*/
/* ######### Style for Drop Down Menu ######### */
.dropmenudiv{
position:absolute;
top: 0;
border: 1px solid #BBB; /*THEME CHANGE HERE*/
border-bottom-width: 0;
font:normal 12px Verdana;
line-height:18px;
z-index:100;
background-color: white;
visibility: hidden;
text-align:left;
.dropmenudiv a{
width: auto;
display: block;
border-bottom: 1px solid #BBB; /*THEME CHANGE HERE*/
padding: 3px;
text-decoration: none;
font-weight: bold;
color: black;
* html .dropmenudiv a{ /*IE only hack*/
width: 100%;
.dropmenudiv a:hover{ /*THEME CHANGE HERE*/
background-color: #0000ff;
color: #fff200;
Nancy O.
Alt-Web Design & Publishing
Web | Graphics | Print | Media Specialists
http://alt-web.com/
http://twitter.com/altweb -
CSS Drop Down Menu Problem (only in IE)
Hi Folks,
I have just added a new drop down menu and it seems to work perfectly in every other browser except IE.
In IE the cursor makes the next menu item along drop down and not the one that's hovered over.
I have removed the jquery script and the same problem occurs, so I reckon it must be a CSS problem. Here's the CSS code in case anyone has any ideas what the problem is.
Any suggestions would be hugely appreciated cos I can't figure it out .
Cheers
Dave
/*Navigation Menu Style*/
#topmenu{
#topmenu #nav, #nav ul{
font-size:10.5px;
font-weight:bold;
margin:0;
list-style-type:none;
list-style-positionutside;
position:relative;
line-height:35px;
background-color:#006699;
width:100%;
text-align:left;
#topmenu #nav a{
display:block;
padding:0px 5px 0px 10px;
width:145px;
border-left-color:#006699;
background-color:#006699;
color:#fff;
text-decoration:none;
text-transform:uppercase;
#topmenu #nav a:hover{
color:#CFF;
#topmenu #nav li{
float:left;
position:relative;
#topmenu #nav ul {
position:absolute;
display:none;
width:160px;
top:35px;
#topmenu #nav li ul{
/*padding-bottom:20px;*/
#topmenu #nav li ul a{
width:180px;
height:35px;
float:left;
text-transform:capitalize;
#topmenu #nav li ul a:hover{
text-decoration:underline;
#topmenu #nav ul ul{
top:auto;
#topmenu #nav li ul ul {
left:180px;
margin:0px 0px 0px 10px;
#topmenu #nav li:hover ul ul, #nav li:hover ul ul ul, #nav li:hover ul ul ul ul{
display:none;
#topmenu #nav li:hover ul, #nav li li:hover ul, #nav li li li:hover ul, #nav li li li li:hover ul{
display:block;
/*Navigation Menu Style Ends */I think that is fine but it did get converted to a smiley face you are right. This is how it looks
#topmenu #nav, #nav ul{
font-size:10.5px;
font-weight:bold;
margin:0;
list-style-type:none;
list-style-position:outside;
position:relative;
line-height:35px;
background-color:#006699;
width:100%;
text-align:left;
it's all on a local set up right non but I will try to pop it up and post a link.
The symptoms are easy to describe though. When you hover over a top level menu item, the list drops down under the link directly to the right.The positioning isn't random, it is exactly in line, just under the wrong heading.
In every other browser it seems to be fine. -
Need Help with Spry Drop Down Menu
Greetings,
I'm a Dreamweaver beginner, and I'm currently working on a
redesign of our corporate website, and I would really like to
incorporate a drop down navigation system. So far, I've gotten
close to what I would like to have, except there are a few items I
just can't figure out. Here's what I have so far:
Click
Here
As you can see, whenever you hover over one of the links, a
sub menu appears. This is great and everything, except I would
really like to make two minor adjustments:
1) I would like to decrease the line-spacing between the main
menu and the submenus.
2) I would like to change the font color of the sub-menu for
better readability.
I created this menu using Dreamweaver's Spry Menu feature. To
get the desired results so far, I simply played around with the CSS
file. The only two things I can't figure out are the above. I tried
to change the font color of the submenus in the CSS file, but there
is no tag that allows you to do this. I found a "Help" document on
repositioning the location of the submenus but every time I try, I
don't get any noticeable results.
Any ideas on how to pull off what I'm looking to do? Any
replies would be greatly appreciated. Thanks!Bump
-
Need help with javascript drop down menu
Hi,
I inherited a website that was already created. I do not know
what version of dreamweaver they created it in but I have
Dreamweaver MX 2004. I am trying to make changes to the drop down
menus. I have figured most everything else out about dreamweaver
but cant figure out how these menu's are made or can be modified. I
have gone into the main template and clicked on the menu section I
want to modify. All it shows it a link to javascript:; I have
searched everywhere for what this means or how to modify it but
can't find anything. Can someone tell me how to get to this info so
I can make changes. Thanks. My website is www.pfcal.org if that
helps.Oh boy. Templates are not for uploading. They have no effect
on the
server. They only change local files which must then be
uploaded to the
server. But - I'm troubled by this comment -
> It didnt give me an option to "save" though
When you made the changes did the template page get marked as
"dirty" (with
an asterisk beside the name)? Which DW are you using?
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.projectseven.com/go
- DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs,
Tutorials & Resources
==================
"sjg23" <[email protected]> wrote in message
news:[email protected]...
> Ok. thanks. I did that but nothing changed. Here is what
I have now:
>
> <div id="MMMenuContainer1112210633_0">
> <div id="MMMenu1112210633_0"
onmouseout="MM_menuStartTimeout(100);"
> onmouseover="MM_menuResetTimeout();">
> <a href="../message_director.cfm"
id="MMMenu1112210633_0_Item_0"
> class="MMMIFVStyleMMMenu1112210633_0"
>
onmouseover="MM_menuOverMenuItem('MMMenu1112210633_0');">
> Director's Message
> </a>
> <a href="../mission.cfm"
id="MMMenu1112210633_0_Item_1"
> class="MMMIVStyleMMMenu1112210633_0"
>
onmouseover="MM_menuOverMenuItem('MMMenu1112210633_0');">
> Our Mission
> </a>
> <a href="../history.cfm"
id="MMMenu1112210633_0_Item_2"
> class="MMMIVStyleMMMenu1112210633_0"
>
onmouseover="MM_menuOverMenuItem('MMMenu1112210633_0');">
> Our History
> </a>
> <a href="../leadership_transiton.cfm"
id="MMMenu1112210633_0_Item_3"
> class="MMMIVStyleMMMenu1112210633_0"
>
onmouseover="MM_menuOverMenuItem('MMMenu1112210633_0');">
> Leadership Transition
> </a>
> <a href="../pcl_organized.cfm"
id="MMMenu1112210633_0_Item_4"
> class="MMMIVStyleMMMenu1112210633_0"
>
onmouseover="MM_menuOverMenuItem('MMMenu1112210633_0');">
> How PCL is Organized
> </a>
> <a href="../board_directors.cfm"
id="MMMenu1112210633_0_Item_5"
> class="MMMIVStyleMMMenu1112210633_0"
>
onmouseover="MM_menuOverMenuItem('MMMenu1112210633_0');">
>
Board of Directors and Officers
> </a>
> <a href="VideoNGO.cfm" id="MMMenu1112210633_0_Item_6"
> class="MMMIVStyleMMMenu1112210633_0"
>
onmouseover="MM_menuOverMenuItem('MMMenu1112210633_0');">
> See our promotional video</a>
>
> </div>
> </div>
>
> I made this change in the html code of the page
"main.dwt" which is my
> main
> template. It didnt give me an option to "save" though so
it's like it
> doesnt
> recognize that I changed anything. I saved it anyway and
uploaded but no
> change
> on the web.
> -
Help with IE drop down menu stretching across page, Chrome & Firefox work perfectly.
I have set up a spry menu in my page. file:///C:/Users/Kim/Documents/PQH_xhtml/index.html
Everything works great in Chrome and Firefox. Just not in IE. The only problem I am having is in IE the drop down menus stretch out all the way across the page.
I have tried changing the width, but it messes up Chrome and Firefox. Just need IE to shorten up the width of sub menus.
Any help is GREATLY appreciated!!!@charset "UTF-8";
/* SpryMenuBarHorizontal.css - version 0.6 - Spry Pre-Release 1.6.1 */
/* Copyright (c) 2006. Adobe Systems Incorporated. All rights reserved. */
LAYOUT INFORMATION: describes box model, positioning, z-order
/* The outermost container of the Menu Bar, an auto width box with no margin or padding */
ul.MenuBarHorizontal
margin: 0;
padding: 0;
list-style-type: none;
font-size: 100%;
cursor: default;
width: auto;
background-color: #f9f8f6;
font-family: Georgia, "Times New Roman", Times, serif;
font-weight: bold;
font-style: oblique;
/* Set the active Menu Bar with this class, currently setting z-index to accomodate IE rendering bug: http://therealcrisp.xs4all.nl/meuk/IE-zindexbug.html */
ul.MenuBarActive
z-index: 1000;
/* Menu item containers, position children relative to this container and are a fixed width */
ul.MenuBarHorizontal li
margin: 0;
padding: 0;
list-style-type: none;
font-size: 100%;
position: relative;
text-align: left;
cursor: pointer;
width: 14.28%;
float: left;
/* Submenus should appear below their parent (top: 0) with a higher z-index, but they are initially off the left side of the screen (-1000em) */
ul.MenuBarHorizontal ul
margin: 0;
padding: 0;
list-style-type: none;
font-size: 100%;
z-index: 1020;
cursor: default;
width: 100%;
position: absolute;
left: -1000em;
/* Submenu that is showing with class designation MenuBarSubmenuVisible, we set left to auto so it comes onto the screen below its parent menu item */
ul.MenuBarHorizontal ul.MenuBarSubmenuVisible
left: auto;
/* Menu item containers are same fixed width as parent */
ul.MenuBarHorizontal ul li
float: none;
clear:left;
width: auto;
white-space: nowrap;
/* Submenus should appear slightly overlapping to the right (95%) and up (-5%) */
ul.MenuBarHorizontal ul ul
position: absolute;
margin: -5% 0 0 95%;
/* Submenu that is showing with class designation MenuBarSubmenuVisible, we set left to 0 so it comes onto the screen */
ul.MenuBarHorizontal ul.MenuBarSubmenuVisible ul.MenuBarSubmenuVisible
left: auto;
top: 0;
DESIGN INFORMATION: describes color scheme, borders, fonts
/* Submenu containers have borders on all sides */
ul.MenuBarHorizontal ul
border: 1px solid #CCC;
/* Menu items are a light gray block with padding and no text decoration */
ul.MenuBarHorizontal a
display: block;
cursor: pointer;
background-color: #EEE;
padding: 0.5em 0.75em;
color: #333;
text-decoration: none;
border: thick ridge #3b87d5;
/* Menu items that have mouse over or focus have a blue background and white text */
ul.MenuBarHorizontal a:hover, ul.MenuBarHorizontal a:focus
background-color: #33C;
color: #FFF;
/* Menu items that are open with submenus are set to MenuBarItemHover with a blue background and white text */
ul.MenuBarHorizontal a.MenuBarItemHover, ul.MenuBarHorizontal a.MenuBarItemSubmenuHover, ul.MenuBarHorizontal a.MenuBarSubmenuVisible
background-color: #33C;
color: #FFF;
SUBMENU INDICATION: styles if there is a submenu under a given menu item
/* Menu items that have a submenu have the class designation MenuBarItemSubmenu and are set to use a background image positioned on the far left (95%) and centered vertically (50%) */
ul.MenuBarHorizontal a.MenuBarItemSubmenu
background-image: url(SpryMenuBarDown.gif);
background-repeat: no-repeat;
background-position: 95% 50%;
/* Menu items that have a submenu have the class designation MenuBarItemSubmenu and are set to use a background image positioned on the far left (95%) and centered vertically (50%) */
ul.MenuBarHorizontal ul a.MenuBarItemSubmenu
background-image: url(SpryMenuBarRight.gif);
background-repeat: no-repeat;
background-position: 95% 50%;
/* Menu items that are open with submenus have the class designation MenuBarItemSubmenuHover and are set to use a "hover" background image positioned on the far left (95%) and centered vertically (50%) */
ul.MenuBarHorizontal a.MenuBarItemSubmenuHover
background-image: url(SpryMenuBarDownHover.gif);
background-repeat: no-repeat;
background-position: 95% 50%;
/* Menu items that are open with submenus have the class designation MenuBarItemSubmenuHover and are set to use a "hover" background image positioned on the far left (95%) and centered vertically (50%) */
ul.MenuBarHorizontal ul a.MenuBarItemSubmenuHover
background-image: url(SpryMenuBarRightHover.gif);
background-repeat: no-repeat;
background-position: 95% 50%;
BROWSER HACKS: the hacks below should not be changed unless you are an expert
/* HACK FOR IE: to make sure the sub menus show above form controls, we underlay each submenu with an iframe */
ul.MenuBarHorizontal iframe
position: absolute;
z-index: 1010;
filter:alpha(opacity:0.1);
/* HACK FOR IE: to stabilize appearance of menu items; the slash in float is to keep IE 5.0 from parsing */
@media screen, projection
ul.MenuBarHorizontal li.MenuBarItemIE
display: inline;
f\loat: left;
background: #FFF; -
Help with Horizontal Drop down menu
Can someone tell me what is wrong with my style sheets. The
drop down menus aren't showing up in IE6, but work fine in Firefox,
Safari and IE7. I am certain it is something simple.
http://www.naylaw.com
Need help please.Working for me on ie6
-
Help with finishing drop-down menu in dreamweaver?
I am trying to make a menu that I want to look like this:
http://www.ivoog.com/link2
I want it to look exactly like that but with a few more of
the same menus next to the first one. The reason I am not using the
menu I made above is because I used a builder and it produced about
10 pages of really weird and complicated code.
Here is what I have so far:
http://www.ivoog.com/link4
I just used random words because the menu is kindof private.
Here's the CSS for the menu:
http://www.ivoog.com/link4/dropdowntabfiles/bluetabs.css
Here's the javascript:
http://ivoog.com/link4/dropdowntabfiles/dropdowntabs.js
Can anyone help me finish and make it exactly like the menu I
showed? I am stuck on many things?!!Isn't this the same question that has been asked and answered
more than once
here?
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.projectseven.com/go
- DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs,
Tutorials & Resources
==================
"hahahaadobeman" <[email protected]> wrote
in message
news:foi5bb$pr1$[email protected]..
>I am trying to make a menu that I want to look like this:
>
>
http://www.ivoog.com/link2
>
> I want it to look exactly like that but with a few more
of the same menus
> next
> to the first one. The reason I am not using the menu I
made above is
> because I
> used a builder and it produced about 10 pages of really
weird and
> complicated
> code.
>
> Here is what I have so far:
>
>
http://www.ivoog.com/link4
>
> I just used random words because the menu is kindof
private.
>
> Here's the CSS for the menu:
>
>
http://www.ivoog.com/link4/dropdowntabfiles/bluetabs.css
>
> Here's the javascript:
>
>
http://ivoog.com/link4/dropdowntabfiles/dropdowntabs.js
>
> Can anyone help me finish and make it exactly like the
menu I showed? I am
> stuck on many things?!!
> -
Help needed to create drop down list for a field.
Hi,
I have to create a parameter/select-options on the selection screen having drop down values and also having multiple selections allowed.
Please help me to attain this functionality.Its urgent.
Thanks,
Sandeep.Hi,
Here is the exampel Program, i am sending the code for a Paramter, If you want this for the Select-options, then you need to have the paramer name as PS_PARM-LOW and you need to write the smae logic again for PS_PARM-HIGH to get the List box for the select-option
REPORT ZLIST.
TYPE-POOLS: VRM.
DATA: NAME TYPE VRM_ID,
LIST TYPE VRM_VALUES,
VALUE LIKE LINE OF LIST.
PARAMETERS: PS_PARM(10) AS LISTBOX VISIBLE LENGTH 10.
AT SELECTION-SCREEN OUTPUT.
NAME = 'PS_PARM'.
VALUE-KEY = '1'.
VALUE-TEXT = 'LINE 1'.
APPEND VALUE TO LIST. VALUE-KEY = '2'.
VALUE-TEXT = 'LINE 2'.
APPEND VALUE TO LIST.
CALL FUNCTION 'VRM_SET_VALUES' EXPORTING ID = NAME VALUES = LIST.
START-OF-SELECTION.
WRITE: / 'PARAMETER:', PS_PARM.
Maybe you are looking for
-
Hi gurus, how can i specify a condition for my sap query ? For example i have a join between vbrk vbfa and vbak and i want only the billing type ZF02 to get selected from vbrk. Thank you
-
How to get text of itab header and structure field name dynamically?
HI. I'm just trying display itab to web. of cause I can use <htmlb:tableView> but I need display by loop itable for my special reason. the table is dynamic structure that means header line should be changes depends on structure description. '<htmlb:
-
Hi this is nauman , and i want a tool or API which can convert or help to convert Html directly into the XML .. so plz tell me about this tool JTIDY, whether it converts HTML directly into XML or not.. Regards. Nauman
-
I really want Flash player on my iPhone so I can play games and watch videos (not just youtube). They say that they don't like flash because HTML 5 is coming. But will my 3GS not be an antique by the time HTML 5 comes out??
-
Hello, I am trying to link AP and GL in R12. I am totally new to R12 , so kind of lost. I tried to develop a query using subledger accounting tables as below but I am getting duplicates. Can someone pl correct me orhelp me build this. I actually need