Bild auf absolute bildmitte zentrieren

Status
Nicht offen für weitere Antworten.

tesarolle

Mitglied
Bin mal wieder ratlos, wie kann ich mein Bild auf die absolute bildmitte zentrieren

HTML:
 <html>

<head>
<title></title>
<style type="text/css"><!--
 BODY {background-color: #000000;
           SCROLLBAR-FACE-COLOR: #000000; SCROLLBAR-HIGHLIGHT-COLOR: #808080; SCROLLBAR-SHADOW-COLOR: #808080; SCROLLBAR-3DLIGHT-COLOR: #c0c0c0; SCROLLBAR-ARROW-COLOR: #808080; SCROLLBAR-TRACK-COLOR: #808080; SCROLLBAR-DARKSHADOW-COLOR: #000000
           }

a:visited {
	color: #000000;
	text-decoration: none;
}
a:hover {
	color: #000000;
	text-decoration: none;
}
a:active {
	color: #000000;
	text-decoration: none;
}
--></style>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"><body leftmargin="0" topmargin="0" rightmargin="0" bottommargin="0">
<table width="200" height="0" border="0" align="center" bgcolor="#000000"  >
  <tr>  </tr>
</table>
<table width="200" height="0" border="0" align="center" bgcolor="#000000"  >
  <tr><a href="Frameset.htm"><img src="LOGO/LOGO.jpg" width="609" height="143" onMouseOver=src="LOGO/LOGOSONNE.jpg" width="300" height="143" onMouseOut=src="LOGO/LOGO.jpg" width="609" height="143" border="0"></a>
    </th>

    
</tr>
</table><p><
</p>
 
Nachdem ich Deinen Quelltext mal wieder ein wenig bereinigt habe, hier da Ergebnis (Du hattest z.B. 3x width und height in der Grafik definiert):
HTML:
<html>
  <head>
    <title></title>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
    <style type="text/css">
    <!--
    body
    {
      background-color: #000000;
      SCROLLBAR-FACE-COLOR: #000000;
      SCROLLBAR-HIGHLIGHT-COLOR: #808080;
      SCROLLBAR-SHADOW-COLOR: #808080;
      SCROLLBAR-3DLIGHT-COLOR: #c0c0c0;
      SCROLLBAR-ARROW-COLOR: #808080;
      SCROLLBAR-TRACK-COLOR: #808080;
      SCROLLBAR-DARKSHADOW-COLOR: #000000;
    }
    a:link, a:visited, a:hover, a:active
    {
      color: #000000;
      text-decoration: none;
    }
    //-->
    </style>
  </head>
  <body leftmargin="0" topmargin="0" rightmargin="0" bottommargin="0">
    <table width="200" height="600" border="0" align="center" bgcolor="#000000">
      <tr>
        <td valign="middle">
          <a href="Frameset.htm"><img src="LOGO/LOGO.jpg" width="609" height="143"
          onMouseOver=src="LOGO/LOGOSONNE.jpg" onMouseOut=src="LOGO/LOGO.jpg" border="0"></a>
        </td>
      </tr>
    </table>
  </body>
</html>
Mit align="center" kannst Du etwas horizontal zentrieren und mit valign="middle" vertikal. Da Du die Höhe der Tabelle auf 0 gesetzt hattest, konnte eine vertikale Zentrierung nicht funktionieren. Jetzt mit 600 geht es (natürlich von den 600 vertikal zentriert). Du musst es halt nur so anpassen, wie Du's brauchst.

redlama
 
Hey Du bist echt klasse! Mhn was kann ich tun um das wieder gut zu machen? Formatierst mir meinen Quellcode du bist echt hamma!

VIELEN DANK
 
Status
Nicht offen für weitere Antworten.
Zurück