Hi,
Ich habe einen Fließtext ohne feste Breite. Ich will aber bestimmen, wann die Zeilen umgebrochen werden und die Zeilenhöhe im CSS anpassen. Was ist besser: BR oder P?
kommt drauf an, was du erreichen bzw. ausdrücken willst.
Ein p-Element bezeichnet einen Absatz, also ein zusammenhängendes Stück Text, das eine Sinneinheit darstellt.
Ein br-Element erzeugt einfach nur einen Zeilenumbruch an einer definierten Stelle im Fließtext innerhalb eines Absatzes. Ich benutze br immer dann wenn ich zwar eine erkennbare Zäsur im Text haben möchte, aber den Absatz nicht auseinanderreißen will.
So long,
Martin
--
Most experts agree: Any feature of a program that you can't turn off if you want to, is a bug.
Except with Microsoft, where it is just the other way round.
Most experts agree: Any feature of a program that you can't turn off if you want to, is a bug.
Except with Microsoft, where it is just the other way round.