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?
| |
|
Welcome to KnowledgeSutra - Dear Guest | |
<ul> Remove The Bullets
Started by moldboy, Nov 18 2005 03:51 AM
6 replies to this topic
#2
Posted 18 November 2005 - 04:05 AM
This is how you do it.
it surprised me when i googled it and it came up. but that should help you out.
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 by Saint_Michael, 18 November 2005 - 04:07 AM.
#6
Posted 20 November 2005 - 06:27 PM
I have a site under development where you can see this applied.
http://www.cucea.udg.mx/pmic/
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-type
list-style-position
list-style-image
for example
#liststyle ul {list-style: none inside url(bullet.gif)}
Greetings...
-10730
http://www.cucea.udg.mx/pmic/
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-type
list-style-position
list-style-image
for example
#liststyle ul {list-style: none inside url(bullet.gif)}
Greetings...
-10730
Reply to this topic

1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users















