Go Back   Velocity Reviews > Newsgroups > HTML
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply

HTML - CSS abourt order list and unorder list (<OL>, <UL>)

 
Thread Tools Search this Thread
Old 06-13-2006, 09:37 AM   #1
Default CSS abourt order list and unorder list (<OL>, <UL>)


When I using <OL> and <UL>,
I find there is a large space at the top and bottom of the list.
How can I set those space height in css/js ?

Please advise. Thanks.



Cylix
  Reply With Quote
Old 06-13-2006, 02:43 PM   #2
Jonathan N. Little
 
Posts: n/a
Default Re: CSS abourt order list and unorder list (<OL>, <UL>)

Cylix wrote:
> When I using <OL> and <UL>,
> I find there is a large space at the top and bottom of the list.
> How can I set those space height in css/js ?
>
> Please advise. Thanks.
>


try:

OL, UL { margin-top: 0; margin-bottom: 0; }

in your stylesheet ans see what happens then study:

http://www.w3.org/TR/CSS21/box.html

--
Take care,

Jonathan
-------------------
LITTLE WORKS STUDIO
http://www.LittleWorksStudio.com
  Reply With Quote
Old 06-14-2006, 01:56 AM   #3
Cylix
 
Posts: n/a
Default Re: CSS abourt order list and unorder list (<OL>, <UL>)

Thanks Jonathan.
The problem is solved.

  Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump