Results 1 to 3 of 3

Thread: <dl>-without breaking line

  1. #1
    Join Date
    Sep 2005
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default <dl>-without breaking line

    The dl-Tags allowes you to specify what you have in front of a list (not the standart dot).
    But when using the dl-Tag the line is always broken.
    Any idea to get everything in one line?

    example: http://www.panzer-kompanie.de/?seite...eich/main.html

  2. #2
    Join Date
    Dec 2004
    Location
    UK
    Posts
    2,358
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Quote Originally Posted by raudi
    The dl-Tags allowes you to specify what you have in front of a list (not the standart dot).
    No, a dl element is a definition list; a glossary (usually). The dt elements within it specify terms which are then described by definition description (dd) elements.

    In any case, you can use CSS to specify your own list marker.

    But when using the dl-Tag the line is always broken.
    Definition lists are block-level elements (like forms, tables, paragraphs, etc.) so line breaks are implied before and after the element.

    Any idea to get everything in one line?
    CSS can be used to suggest that the element is rendered as an inline element.

    What exactly are you trying to achieve, and why? Please either give a detailed example, or provide some form of illustration. Having myself of others guessing will likely result in sub-optimal solutions.

    Mike

  3. #3
    Join Date
    Sep 2005
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    i got a solution from elsewhere.
    it's this:
    dt{
    float:left;
    }
    so here you see it at work: http://www.panzer-kompanie.de/?seite...eich/main.html

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
  •