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...
CSS - Bild zentrieren in DW CC
Beitrag
<blockquote data-quote="Sisankha" data-source="post: 2469332" data-attributes="member: 527802"><p>Das ist echt schräg. Wenn ich im Margin Links pxWerte eingebe, wandert das Bild entsprechend nach rechts. Aber wenn ich auf auto umstelle, schwuppst es zurück an den linken Rand und bleibt dort kleben.</p><p></p><p>Hier der komplette Code von meiner Übungsseite zum Thema:</p><p></p><p></p><p><span style="font-size: 12px"><span style="color: #bfbfbf"><!doctype html></span></span></p><p><span style="font-size: 12px"><span style="color: #bfbfbf"><html></span></span></p><p><span style="font-size: 12px"><span style="color: #bfbfbf"><head></span></span></p><p><span style="font-size: 12px"><span style="color: #bfbfbf"><meta charset="utf-8"></span></span></p><p><span style="font-size: 12px"><span style="color: #bfbfbf"><title>Unbenanntes Dokument</title></span></span></p><p><span style="font-size: 12px"><span style="color: #bfbfbf"><style type="text/css"></span></span></p><p><span style="font-size: 12px"><span style="color: #bfbfbf">#container {</span></span></p><p><span style="font-size: 12px"><span style="color: #bfbfbf"> height: auto;</span></span></p><p><span style="font-size: 12px"><span style="color: #bfbfbf"> width: 600px;</span></span></p><p><span style="font-size: 12px"><span style="color: #bfbfbf"> min-height: 400px;</span></span></p><p><span style="font-size: 12px"><span style="color: #bfbfbf"> margin-left: auto;</span></span></p><p><span style="font-size: 12px"><span style="color: #bfbfbf"> margin-right: auto;</span></span></p><p><span style="font-size: 12px"><span style="color: #bfbfbf">}</span></span></p><p><span style="font-size: 12px"><span style="color: #bfbfbf">.bild_mitte {</span></span></p><p><span style="font-size: 12px"><span style="color: #bfbfbf"> margin-left: auto;</span></span></p><p><span style="font-size: 12px"><span style="color: #bfbfbf"> margin-right: auto;</span></span></p><p><span style="font-size: 12px"><span style="color: #bfbfbf"> margin-top: 8px;</span></span></p><p><span style="font-size: 12px"><span style="color: #bfbfbf"> margin-bottom: 8px;</span></span></p><p><span style="font-size: 12px"><span style="color: #bfbfbf">}</span></span></p><p><span style="font-size: 12px"><span style="color: #bfbfbf"></style></span></span></p><p><span style="font-size: 12px"><span style="color: #bfbfbf"></head></span></span></p><p><span style="font-size: 12px"><span style="color: #bfbfbf"></span></span></p><p><span style="font-size: 12px"><span style="color: #bfbfbf"><body></span></span></p><p><span style="font-size: 12px"><span style="color: #bfbfbf"><span style="text-align: center"></span><span style="text-align: center"></span></span></span></p><p><span style="font-size: 12px"><span style="color: #bfbfbf"><div id="container"></span></span></p><p><span style="font-size: 12px"><span style="color: #bfbfbf"> <p>diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt volutpat. </p></span></span></p><p><span style="font-size: 12px"><span style="color: #bfbfbf"> <p><img src="sol1.png" alt="" width="225" height="223" class="bild_mitte"/></p></span></span></p><p><span style="font-size: 12px"><span style="color: #bfbfbf"> <p>erat, et nonumy sed tempor et et invidunt justo labore Stet clita ea et gubergren, kasd magna no rebum. sanctus sea sed takimata ut vero voluptua. est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur</p></span></span></p><p><span style="font-size: 12px"><span style="color: #bfbfbf"></div></span></span></p><p><span style="font-size: 12px"><span style="color: #bfbfbf"></body></span></span></p><p><span style="font-size: 12px"><span style="color: #bfbfbf"></html></span></span></p></blockquote><p></p>
[QUOTE="Sisankha, post: 2469332, member: 527802"] Das ist echt schräg. Wenn ich im Margin Links pxWerte eingebe, wandert das Bild entsprechend nach rechts. Aber wenn ich auf auto umstelle, schwuppst es zurück an den linken Rand und bleibt dort kleben. Hier der komplette Code von meiner Übungsseite zum Thema: [SIZE=3][COLOR=#bfbfbf]<!doctype html> <html> <head> <meta charset="utf-8"> <title>Unbenanntes Dokument</title> <style type="text/css"> #container { height: auto; width: 600px; min-height: 400px; margin-left: auto; margin-right: auto; } .bild_mitte { margin-left: auto; margin-right: auto; margin-top: 8px; margin-bottom: 8px; } </style> </head> <body> <span style="text-align: center"></span><span style="text-align: center"></span> <div id="container"> <p>diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt volutpat. </p> <p><img src="sol1.png" alt="" width="225" height="223" class="bild_mitte"/></p> <p>erat, et nonumy sed tempor et et invidunt justo labore Stet clita ea et gubergren, kasd magna no rebum. sanctus sea sed takimata ut vero voluptua. est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur</p> </div> </body> </html>[/COLOR][/SIZE] [/QUOTE]
Bilder bitte
hier hochladen
und danach über das Bild-Icon (Direktlink vorher kopieren) platzieren.
Zitate einfügen…
Authentifizierung
Wenn ▲ = 7, ▼ = 3, ◇ = 2 und die Summe von ▲ und ▼ durch ◇ geteilt wird, was ist das Ergebnis?
Antworten
Start
Forum
Sonstiges
Webdesign, Webentwicklung & Programmierung
Webdesign: HTML/CSS, Responsive Design, Sass...
CSS - Bild zentrieren in DW CC
Oben