PDA

View Full Version : Turning <ul> list-style back to default


johnmr
17th December 06, 10:18 PM
I have built a shell for a site I am developing and it employs a navigation fly-out menu built in css. I have styled the ul and li items to do the fly out. One of the things I did was to set list-style: none; so I wouldn't get bullets, which all works fine.

The one problem I am having now is that anywhere else I am using a ul it is picking up this list-style: none; I defined a style for the main content area and am able to control other aspects of the ul tag, but am unable to get it to show bullets. Here is a link to the page in question:

http://www.denverderm.com/div_test/css_test3.asp

and here is a link to the stylesheet:

http://www.denverderm.com/div_test/style.css

Any one know how I might go about getting the bullets to work? FYI: the code for the menu starts on line 124 and what I have done to try to override it starts on line 45. Any help appreciated.

Martijn
18th December 06, 02:56 PM
This is because you have defined the basic ul tags in your css.

do the following:

.menu ul {

css for menu goes here

}

Then in ur html use <ul class="menu">blaat</ul>

And assign a normal style to the ordinary ul you want to use throughout the rest of the site in contentareas.

Hope this short example makes sense