Log in

View Full Version : <dl>-without breaking line



raudi
10-01-2005, 12:46 PM
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=vergleich/main.html

mwinter
10-02-2005, 08:37 PM
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

raudi
10-02-2005, 09:25 PM
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=vergleich/main.html