hallo, schau mal ob du damit klarkommst:
kurze erklärung, ich habe das bild in ein div gepackt, welches auf der seite absolut ausgerichtet - zentriert istHTML-Code:<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>bild im div zentriert</title> <style type="text/css"> <!-- * { padding:0; margin:0; } img { border:none; } #page { background-color:#0ff; position:absolute; width:900px; height:500px; top: 50%; left: 50%; padding: 0px; margin-top: -250px; margin-right: 0px; margin-bottom: 0px; margin-left: -450px; } img.inhalt { width:900px; height:500px; border:none; } --> </style> </head> <body> <div id="page"> <img src="deinbild.jpg" alt="etc" class="inhalt" /> </div> </body> </html>


LinkBack URL
About LinkBacks
Zitieren