E
Enrika
Greetings! I'm working on a CSS drop-down menu, which, to my surprise,
is actually working, more-or-less, in both IE *and* Firefox (and
Netscape). But there are two changes that I want to make that I just
can't figure out how to do.
The first is to make the submenu wider than the top menu. Currently, if
the text of the submenu doesn't fit within the width of the menu item,
the submenu item height increases to accomodate the entire text. (The
IE menu does this automatically, and I have hardcoded the non-IE menu
to do it manually by changing the "height" property appropriately for
the longer lines.) I've tried changing the "width" property, but that
just results in it writing the text to the submenu as though the width
is longer, but still displaying the submenu item at the width of the
top menu item, thereby cutting off even more of the text. Does anyone
know how to make a submenu item appear wider than the top menu item?
Here's my current non-IE submenu definition (for just one line of menu
text):
#noniemenu a.inner, #noniemenu a.inner:visited {
display:block;
width:104px;
height:18px;
line-height:18px;
border-bottom:1px solid #fff;
text-decoration:none;
color:#fff;
background:#008080;
text-align:center;
font-size:10px;
}
Here's my current IE submenu definition (again, for just one line of
menu text):
..menu a.inner, .menu a.inner:visited {
display:block;
width:104px;
height:18px;
border-bottom:1px solid #fff;
text-decoration:none;
color:#fff;
font-family: verdana, arial, sans-serif;
font-size:10px;
text-align:center;
}
Here's what I have working at this time:
http://www.webopinions.org/enrika/test/queryweb.htm
And here's the old version, which is Javascript and only works in IE,
but which shows (basically) what I'm trying to do (if you're running
IE):
www.analyticalgroup.com/queryweb.htm
The second thing I haven't figured out yet is how to make the submenu
item text left-justified instead of centered, but I really haven't done
much digging on that. If anyone knows how to do this off the top of
their head, I'd much appreciate it, but it hasn't caused me agony yet
(unlike the first problem).
Fingers crossed, and thanks in advance!
is actually working, more-or-less, in both IE *and* Firefox (and
Netscape). But there are two changes that I want to make that I just
can't figure out how to do.
The first is to make the submenu wider than the top menu. Currently, if
the text of the submenu doesn't fit within the width of the menu item,
the submenu item height increases to accomodate the entire text. (The
IE menu does this automatically, and I have hardcoded the non-IE menu
to do it manually by changing the "height" property appropriately for
the longer lines.) I've tried changing the "width" property, but that
just results in it writing the text to the submenu as though the width
is longer, but still displaying the submenu item at the width of the
top menu item, thereby cutting off even more of the text. Does anyone
know how to make a submenu item appear wider than the top menu item?
Here's my current non-IE submenu definition (for just one line of menu
text):
#noniemenu a.inner, #noniemenu a.inner:visited {
display:block;
width:104px;
height:18px;
line-height:18px;
border-bottom:1px solid #fff;
text-decoration:none;
color:#fff;
background:#008080;
text-align:center;
font-size:10px;
}
Here's my current IE submenu definition (again, for just one line of
menu text):
..menu a.inner, .menu a.inner:visited {
display:block;
width:104px;
height:18px;
border-bottom:1px solid #fff;
text-decoration:none;
color:#fff;
font-family: verdana, arial, sans-serif;
font-size:10px;
text-align:center;
}
Here's what I have working at this time:
http://www.webopinions.org/enrika/test/queryweb.htm
And here's the old version, which is Javascript and only works in IE,
but which shows (basically) what I'm trying to do (if you're running
IE):
www.analyticalgroup.com/queryweb.htm
The second thing I haven't figured out yet is how to make the submenu
item text left-justified instead of centered, but I really haven't done
much digging on that. If anyone knows how to do this off the top of
their head, I'd much appreciate it, but it hasn't caused me agony yet
(unlike the first problem).
Fingers crossed, and thanks in advance!