Hallo David.
kennt jemand von euch vielleicht eine Lösung, wie man ein <div> mit CSS so breit machen kann wie der Text darin Platz einnimmt,
Und was willst du damit erreichen? Womöglich gibt es eine bessere Lösung.
Grundsätzlich kannst du http://de.selfhtml.org/css/eigenschaften/positionierung.htm#display@title=display:inline für Elemente setzen, woraufhin sie ihre Breite an ihren Inhalt anpassen.
Einen schönen Dienstag noch.
Gruß, Ashura
--
sh:( fo:} ch:? rl:( br: n4:~ ie:{ mo:| va:) de:> zu:} fl:( ss:) ls:[ js:|
„It is required that HTML be a common language between all platforms. This implies no device-specific markup, or anything which requires control over fonts or colors, for example. This is in keeping with the SGML ideal.“
[HTML Design Constraints: Logical Markup]
sh:( fo:} ch:? rl:( br: n4:~ ie:{ mo:| va:) de:> zu:} fl:( ss:) ls:[ js:|
„It is required that HTML be a common language between all platforms. This implies no device-specific markup, or anything which requires control over fonts or colors, for example. This is in keeping with the SGML ideal.“
[HTML Design Constraints: Logical Markup]