Jump to content



Welcome to KnowledgeSutra - Dear Guest , Please Register here to get Your own website. - Ask a Question / Express Opinion / Reply w/o Sign-Up!
- - - - -

<ul> Remove The Bullets


6 replies to this topic

#1 moldboy

    Privileged Member

  • Kontributors
  • PipPipPipPipPipPipPipPipPip
  • 516 posts
  • Location:Canada Eh?!?

Posted 18 November 2005 - 03:51 AM

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?

#2 Saint_Michael

    $p4m 0n j00 $h4m3 m3 0nc3 $p4m 0n m3 $h4m3 m3 7\/\/1c3

  • [MODERATOR]
  • PipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPip
  • 7,459 posts
  • Gender:Male
  • Location:9r33|\| 399$ 4|\|D 5P4/\/\
  • Interests:$p4m 0n j00 $h4m3 m3 0nc3 $p4m 0n m3 $h4m3 m3 7\/\/1c3
  • myCENT:71.24

Posted 18 November 2005 - 04:05 AM

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 by Saint_Michael, 18 November 2005 - 04:07 AM.


#3 jlhaslip

    Insert Custom Title Here

  • [MODERATOR]
  • PipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPip
  • 5,040 posts
  • Gender:Not Telling
  • Location:Linux, DOS and Windows…the good, the bad and the ugly
  • myCENT:81.07
  • Spam Patrol

Posted 18 November 2005 - 04:38 AM

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 by jlhaslip, 18 November 2005 - 04:46 AM.


#4 snlildude87

    Moderator

  • Kontributors
  • PipPipPipPipPipPipPipPipPipPipPipPipPipPipPip
  • 2,325 posts
  • Location:Mawson, Antarctica

Posted 18 November 2005 - 09:40 PM

Yep. The key is the keyword "none" in list-style-type. This is also how CSS rollover menus are created.

#5 moldboy

    Privileged Member

  • Kontributors
  • PipPipPipPipPipPipPipPipPip
  • 516 posts
  • Location:Canada Eh?!?

Posted 18 November 2005 - 10:23 PM

Thanks that did do the trick,

Quote

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?

#6 Lozbo

    Super Member

  • Kontributors
  • PipPipPipPipPipPipPipPipPip
  • 282 posts
  • Location:Wanatos
  • Interests:Multimedia Arts and Technologies =)

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

#7 Guest_jon_*

  • Guests

Posted 15 May 2011 - 08:55 AM

list-style-type: none;




Reply to this topic


This post will need approval from a moderator before this post is shown.

  


1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users