Abstand zwischen Paragraphen steuern
Topo
- css
Hallo Leute,
wie steuere ich den Abstand zwischen zwei Paragraphen (<p>)???
Vielen Dank schon mal!
Ciao, Topo.
wie steuere ich den Abstand zwischen zwei Paragraphen (<p>)???
Das Wort heisst margin und steht in einer CSS Anweisung.
http://de.selfhtml.org/css/index.htm
mfg Beat
Ja, Danke!
dann müßte ich den margin von <p> auf Null setzen, damit kein Abstand zwischen ihnen angezeigt wird?
Und heißt das, dass die Browser automatisch einen Abstand zwischen zwei <p> vorgeben?
wie steuere ich den Abstand zwischen zwei Paragraphen (<p>)???
Das Wort heisst margin und steht in einer CSS Anweisung.
http://de.selfhtml.org/css/index.htmmfg Beat
Und heißt das, dass die Browser automatisch einen Abstand zwischen zwei <p> vorgeben?
Browser haben Defaultwerte, und in manchen Fällen verschiedene Defaultwerte.
Vergleiche MSIE und Firefox bezüglich margin und padding in ul und li.
mfg Beat
Hallo,
margin ist der außenabstand von blockelementen, padding der innenabstand. mit border: 1px solid red; kannst du das auch visualisieren.
Gruß
jobo
Hallo,
http://meyerweb.com/eric/thoughts/2004/09/15/emreallyem-undoing-htmlcss/
"There’s an aspect of document presentation most of us don’t consider: the browser defaults. If you take an HTML or XHTML document—for the purposes of this exercise, assume it contains no presentational markup—and load it up in a Web browser with no CSS applied, there will still be some presentational effects. A level-one heading, for example, is usually boldfaced and a good deal larger than other text, thus leading to the old stereotype of headings being “big and ugly”; the pre element typically honors whitespace and uses a monospace font; a paragraph is separated from other elements by a “blank line”; and so on. From a CSS point of view, all this happens because the browser has built-in styles. "
Etc.pp.
Gruß
jobo