Guten Tag
ich möchte eine Grafik und einen Text horizontal und vertikal innerhalb eines div zentrieren. da ich Anfänger bin weiß ich aber nicht, wie ich das anstellen soll. Ich habe nun eine ganze Weile im Forum gesucht und dann herum probiert, aber nur folgendes zu Stande gebracht:
Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="de" lang="de">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Template</title>
<style type="text/css">
.tabelle {
width: 100%;
margin: 0 auto;
text-align: center;
height: 100%;
}
</style>
<body>
<div class="tabelle">
Guten Tag
</div>
</body>
</html>
die Grafik habe ich dabei noch nicht berücksichtigt. Ich hoffe, dass ich das dann selbst hin bekomme.
nun bräuchte ich ein paar Tipps von euch.
Vielen Dank schonmal