moldboy 0 Report post Posted November 18, 2005 I have a little handbook for CSS by O'reilly and can't seem to find in it how to remove the bullets from an <li> that is inside a <ul>. Any help? Share this post Link to post Share on other sites
Saint_Michael 3 Report post Posted November 18, 2005 (edited) This is how you do it. CSS CODE#navcontainer ul { list-style-type: none; }HTML CODE<div id="navcontainer"><ul><li><a href="#">Milk</a> <ul> <li><a href="#">Goat</a></li> <li><a href="#">Cow</a></li> </ul></li><li><a href="#">Eggs</a> <ul> <li><a href="#">Free-range</a></li> <li><a href="#">Other</a></li> </ul></li><li><a href="#">Cheese</a> <ul> <li><a href="#">Smelly</a></li> <li><a href="#">Extra smelly</a></li> </ul></li></ul></div> it surprised me when i googled it and it came up. but that should help you out. Edited November 18, 2005 by Saint_Michael (see edit history) Share this post Link to post Share on other sites
jlhaslip 4 Report post Posted November 18, 2005 (edited) Google? for that?Use this next time. It will be handier, because it explains the css and html all in one spot. Look on the left hand side for CSS2 Reference. Lots of info at the w3schools. Notice from jlhaslip: edit to correct link Edited November 18, 2005 by jlhaslip (see edit history) Share this post Link to post Share on other sites
snlildude87 0 Report post Posted November 18, 2005 Yep. The key is the keyword "none" in list-style-type. This is also how CSS rollover menus are created. Share this post Link to post Share on other sites
moldboy 0 Report post Posted November 18, 2005 Thanks that did do the trick, This is also how CSS rollover menus are created. I was aware of this already but I am wondering if you have a particular site in mind that would show how? Share this post Link to post Share on other sites
Lozbo 0 Report post Posted November 20, 2005 I have a site under development where you can see this applied.http://forums.xisto.com/no_longer_exists/If you have firefox and the webdeveloper tools extension installed, it will be easier and faster to locate the css, which is attached to the documents by a style which @imports the main style. _Im currently working (hehe not true but planning to work in) the other media styles.The shorthand for style is like this:list-style-typelist-style-positionlist-style-imagefor example #liststyle ul {list-style: none inside url(bullet.gif)}Greetings...-10730 Share this post Link to post Share on other sites
iGuest 3 Report post Posted May 15, 2011 list-style-type: none; Share this post Link to post Share on other sites