SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Member
    Join Date
    Aug 2002
    Posts
    10
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    possible to prevent auto-return?

    Hey,

    Does anyone know if it is at all possible to prevent the automatic return to the next line after certain HTML tags like <p> or <ol>/<ul>. It isnt so much the paragraph tag as it is the ordered and undordered list. I need a list within a list but without empty lines inbetween.

    For example:
    (Good):

    1. List 1
    2. List 1
    i. List 2
    ii. List 2
    iii. List 2
    3. List 1

    (Bad):

    1. List 1
    2. List 1

    i. List 2
    ii. List 2
    iii. List 2

    3. List 1



    Hope that makes sense.. if not ill try to clarify.
    Thanks,
    -Skourge

  2. #2
    SitePoint Zealot 19nine78's Avatar
    Join Date
    Feb 2002
    Location
    Ayr, scotland
    Posts
    135
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I think you need:

    ul, ol, p{
    margin-top:0;
    margin-bottom:0
    }

    in your stylesheet which sets the top and bottom margins for <ul>, <ol> and <p> to zero. Won't work on NS 4 though.

    You can also nest your bulleted lists if your looking for a subset list.

    cheers

    alastair


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •