PSD-Tutorials.de
Forum für Design, Fotografie & Bildbearbeitung
Tutkit
Agentur
Hilfe
Kontakt
Start
Forum
Aktuelles
Besonderer Inhalt
Foren durchsuchen
Tutorials
News
Anmelden
Kostenlos registrieren
Aktuelles
Suche
Suche
Nur Titel durchsuchen
Von:
Menü
Anmelden
Kostenlos registrieren
App installieren
Installieren
JavaScript ist deaktiviert. Für eine bessere Darstellung aktiviere bitte JavaScript in deinem Browser, bevor du fortfährst.
Du verwendest einen veralteten Browser. Es ist möglich, dass diese oder andere Websites nicht korrekt angezeigt werden.
Du solltest ein Upgrade durchführen oder einen
alternativen Browser
verwenden.
Antworten auf deine Fragen:
Neues Thema erstellen
Start
Forum
Sonstiges
Webdesign, Webentwicklung & Programmierung
Webdesign: HTML/CSS, Responsive Design, Sass...
Gedicht mit automatischem Zeilenumbruch
Beitrag
<blockquote data-quote="greatblock" data-source="post: 2775781" data-attributes="member: 825137"><p>Edit: Oh, ich sehe gerade, es hat sich erledigt.</p><p></p><p></p><p></p><p>Hm, also bei mir funktioniert's.</p><p></p><p></p><p></p><p><code class="bbCodeInline"></code></p><p><code class="bbCodeInline"><!doctype html></code></p><p><code class="bbCodeInline"><html></code></p><p><code class="bbCodeInline"><head></code></p><p><code class="bbCodeInline"> <meta charset="UTF-8"></code></p><p><code class="bbCodeInline"> <title>Test für Gedicht</title></code></p><p><code class="bbCodeInline"> <style></code></p><p><code class="bbCodeInline"> .poem p::first-line { background-color: yellow; text-align: right; }</code></p><p><code class="bbCodeInline"> .poem p:nth-of-type(n+1) { text-align: justify; }</code></p><p><code class="bbCodeInline"> .poem {width: 50%; margin-left: 5em; }</code></p><p><code class="bbCodeInline"></code></p><p><code class="bbCodeInline"> @media screen and (max-width: 1195px) {</code></p><p><code class="bbCodeInline"> .p1 {text-align: right!important;}</code></p><p><code class="bbCodeInline"> }</code></p><p><code class="bbCodeInline"></code></p><p><code class="bbCodeInline"> </style></code></p><p><code class="bbCodeInline"></head></code></p><p><code class="bbCodeInline"><body></code></p><p><code class="bbCodeInline"><h1>Eine Gedichtzeile</h1></code></p><p><code class="bbCodeInline"><p> mit rechtbündigen Zeilenumbruch. Verändere die Breite des Fenster und sieh, wie die Zeilen umbrechen. Die gelbe Hintergrundfarbe dient hier nur um Erkennen, welches die erste Zeile ist.</p></code></p><p><code class="bbCodeInline"><div class="poem"></code></p><p><code class="bbCodeInline"> <p class="p1"> 1aaaaaaa 2bbbbbbbb 3cccccccccc 4dddddddd 5eeeeeeee 6 fffff 7gggggggggggg 8 hhhhhhh. </p></code></p><p><code class="bbCodeInline"></div></code></p><p><code class="bbCodeInline"></body></code></p><p><code class="bbCodeInline"></html></code></p><p><code class="bbCodeInline"></code></p><p></p><p></p><p>Du kannst auch deine CSS Datei mit:</p><p></p><p><code class="bbCodeInline"></code></p><p><code class="bbCodeInline">html, body, div, span, applet, object, iframe,</code></p><p><code class="bbCodeInline">h1, h2, h3, h4, h5, h6, p, blockquote, pre,</code></p><p><code class="bbCodeInline">a, abbr, acronym, address, big, cite, code,</code></p><p><code class="bbCodeInline">del, dfn, em, font, img, ins, kbd, q, s, samp,</code></p><p><code class="bbCodeInline">small, strike, strong, sub, sup, tt, var,</code></p><p><code class="bbCodeInline">dl, dt, dd, ol, ul, li,</code></p><p><code class="bbCodeInline">fieldset, form, label, legend,</code></p><p><code class="bbCodeInline">table, caption, tbody, tfoot, thead, tr, th, td {</code></p><p><code class="bbCodeInline"> margin: 0;</code></p><p><code class="bbCodeInline"> padding: 0;</code></p><p><code class="bbCodeInline"> border: 0;</code></p><p><code class="bbCodeInline"> outline: 0;</code></p><p><code class="bbCodeInline">}</code></p><p><code class="bbCodeInline"></code></p><p></p><p></p><p>resetten.</p></blockquote><p></p>
[QUOTE="greatblock, post: 2775781, member: 825137"] Edit: Oh, ich sehe gerade, es hat sich erledigt. Hm, also bei mir funktioniert's. [ICODE] <!doctype html> <html> <head> <meta charset="UTF-8"> <title>Test für Gedicht</title> <style> .poem p::first-line { background-color: yellow; text-align: right; } .poem p:nth-of-type(n+1) { text-align: justify; } .poem {width: 50%; margin-left: 5em; } @media screen and (max-width: 1195px) { .p1 {text-align: right!important;} } </style> </head> <body> <h1>Eine Gedichtzeile</h1> <p> mit rechtbündigen Zeilenumbruch. Verändere die Breite des Fenster und sieh, wie die Zeilen umbrechen. Die gelbe Hintergrundfarbe dient hier nur um Erkennen, welches die erste Zeile ist.</p> <div class="poem"> <p class="p1"> 1aaaaaaa 2bbbbbbbb 3cccccccccc 4dddddddd 5eeeeeeee 6 fffff 7gggggggggggg 8 hhhhhhh. </p> </div> </body> </html> [/ICODE] Du kannst auch deine CSS Datei mit: [ICODE] html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, font, img, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td { margin: 0; padding: 0; border: 0; outline: 0; } [/ICODE] resetten. [/QUOTE]
Bilder bitte
hier hochladen
und danach über das Bild-Icon (Direktlink vorher kopieren) platzieren.
Zitate einfügen…
Authentifizierung
Wenn ▲ = 5, ▼ = 2 und ■ = 7, was ist ▲ × ▼ + ■?
Antworten
Start
Forum
Sonstiges
Webdesign, Webentwicklung & Programmierung
Webdesign: HTML/CSS, Responsive Design, Sass...
Gedicht mit automatischem Zeilenumbruch
Oben