Democratic Underground Latest Greatest Lobby Journals Search Options Help Login
Google

CSS, using bulleted text - Mozilla adds line feed, IE does not.

Printer-friendly format Printer-friendly format
Printer-friendly format Email this thread to a friend
Printer-friendly format Bookmark this thread
This topic is archived.
Home » Discuss » DU Groups » Computers & Internet » Computer Help and Support Group Donate to DU
 
Deja Q Donating Member (1000+ posts) Send PM | Profile | Ignore Sun Mar-19-06 02:54 PM
Original message
CSS, using bulleted text - Mozilla adds line feed, IE does not.
Hello. I am using a CSS document to make a vertical drop-down menu appear.

The problem is, Internet Explorer doesn't add line feeds after the <li>...</li> code whereas Mozilla does. :( This makes navigation difficult in IE.

I know I'm missing the obvious, but what parameter will force line feeds between li tags for IE?

Thanks!



ul {
margin: 0;
padding: 2;
list-style: none;
width: 130px; /* Width of Menu Items */
height: 20px;
}

ul li {
position: relative;
}

ul li ul li a {
display: block;
text-decoration: none;
background: #AA0044;
padding: 3px;
border-bottom: 0;
filter:alpha(opacity=70);
opacity: 0.7;
-moz-opacity:0.7;
}


/* Fix IE. Hide from IE Mac \*/
* html ul li { float: left; height: 1%; }
* html ul li a { height: 1%; }
/* End */

ul li ul li a:hover { color: #009944; background: #BB0066; filter:alpha(opacity=95); opacity: 0.95; -moz-opacity:0.95;}
/* Hover Styles */

ul ul {
position:absolute;
display:none;
left: 113px; /* Set 1px less than menu width */
top: 0px;
}

li ul li a { padding: 2px 0px; } /* Sub Menu Styles */

li:hover ul ul, li.over ul ul { display:none; }

li:hover ul, li li:hover ul, li.over ul, li li.over ul { display: block; }

Printer Friendly | Permalink |  | Top
Berserker Donating Member (1000+ posts) Send PM | Profile | Ignore Sun Mar-19-06 02:57 PM
Response to Original message
1. Here is a link
to a forum that will help you. I'm not saying someone here can't, just giving a link to one I use to get help.
http://codingforums.com/index.php?
Printer Friendly | Permalink |  | Top
 
Deja Q Donating Member (1000+ posts) Send PM | Profile | Ignore Sun Mar-19-06 04:48 PM
Response to Reply #1
3. Much appreciated - thanks!
Until I get this multibrowser stuff down pat, I've opted to cheat via using xparent gifs to get around the crappiness of IE, I do wish microsoft would grow up and make life easier for developers who use code that works fine on ALL the competition... (my peeps website menu...)
Printer Friendly | Permalink |  | Top
 
salvorhardin Donating Member (1000+ posts) Send PM | Profile | Ignore Sun Mar-19-06 03:08 PM
Response to Original message
2. white-space: nowrap;
Edited on Sun Mar-19-06 03:15 PM by salvorhardin
Printer Friendly | Permalink |  | Top
 
DU AdBot (1000+ posts) Click to send private message to this author Click to view 
this author's profile Click to add 
this author to your buddy list Click to add 
this author to your Ignore list Thu Dec 26th 2024, 04:54 AM
Response to Original message
Advertisements [?]
 Top

Home » Discuss » DU Groups » Computers & Internet » Computer Help and Support Group Donate to DU

Powered by DCForum+ Version 1.1 Copyright 1997-2002 DCScripts.com
Software has been extensively modified by the DU administrators


Important Notices: By participating on this discussion board, visitors agree to abide by the rules outlined on our Rules page. Messages posted on the Democratic Underground Discussion Forums are the opinions of the individuals who post them, and do not necessarily represent the opinions of Democratic Underground, LLC.

Home  |  Discussion Forums  |  Journals |  Store  |  Donate

About DU  |  Contact Us  |  Privacy Policy

Got a message for Democratic Underground? Click here to send us a message.

© 2001 - 2011 Democratic Underground, LLC