SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    Don't eat yellow snow spaceman's Avatar
    Join Date
    Mar 2001
    Location
    Melbourne, Australia
    Posts
    1,039
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    How to remove line break before <ul>

    I want my bullet points to appear immediately after a paragraph of text. But the opening <ul> has the effect of forcing an empty line in between the text paragraph and the first bullet point.

    I'm sure this is 'correct' behaviour, but perhaps I can use CSS to convince it _not_ to do this?

    Thanks for any help.
    Web Design Perth Melbourne .:. Itomic Business Website Solutions
    Drupal Experts .:. Drupalise

  2. #2
    SitePoint Wizard
    Join Date
    Oct 2001
    Location
    Tucson, Arizona
    Posts
    1,858
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Try this out:
    Code:
    p { margin: 0; }
    ul { margin-top: 0; }
    Modify it to your needs, of course, but you get the general idea of it.

  3. #3
    Don't eat yellow snow spaceman's Avatar
    Join Date
    Mar 2001
    Location
    Melbourne, Australia
    Posts
    1,039
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Doh! I KNEW it was that easy.

    Thanks a bundle.
    Web Design Perth Melbourne .:. Itomic Business Website Solutions
    Drupal Experts .:. Drupalise


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
  •