views:

99

answers:

6

The browser will consider the list existence and arrange them accordingly, however won't show the small icon next to each one of them like the following:

Normal list appear like the following:

  • text A
  • text B
  • text C

I want them to appear like this

text A

text B

text C

+6  A: 
ul { list-style: none; }

That gets rid of the bullet points. Now you can go ahead and assign styles to space them out like in your example, if that's what you really wanted:

li { padding: 5px 0; }

If you also don't want the list indented after removing the bullets, it will take another bit, like this:

ul {
   list-style: none;
   margin: 0;
   padding: 0;
}

If you dont set both margin and padding to 0, it will either look right in FF or IE, but not both

Erik
+3  A: 

Use

list-style:none;

in the style for the < ul > tag

Doug T.
A: 

list-style-type: upper-roman;

Grumpy
he does not want any kind of numbering ...
Gaby
+2  A: 

Also, this link has some nice examples to learn from for styling html lists.

ryanulit
Very helpful! Thanks!
MAK
A: 

I suggest you to read html tutorials in order not to ask such questions. It's really easy

If only you'd offered a suggestion as to *how*, or *what*, and *where*, to read up on these techniques...
David Thomas
+1  A: 

Alternatively, you can also use a definition list (dl, dt, dd) without definition terms (dt elements).

<dl>
    <dd>text A</dd>
    <dd>text B</dd>
    <dd>text C</dd>
</dl>

But semantically I think an unordered list (ul, li) suits your particular purpose better :) So go ahead with just a piece of good CSS as explained by Erik.

BalusC
Very interesting! Never heard of those tags before.Thanks!
MAK