Style zentriert wie?

Status
Nicht offen für weitere Antworten.

warriorsoldier

Grünschnabel
Könnte mir sagen wie ich denn style zentriert in die mitte tun kann.
HTML:
<html>

<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<meta name="ProgId" content="FrontPage.Editor.Document">
<title>%titel%</title>
<style type="text/css">

A:ACTIVE.navi,

A:link.navi, A:VISITED.navi

{ Color: #000000;

Text-Decoration: none;

}

A:Hover.navi

{

Color: #000000;

Text-Decoration: underline;

}<BR></style>

</head>

<body topmargin="0" leftmargin="0" rightmargin="0" bottommargin="0" marginheight="0" marginwidth="0" bgcolor="#FFFFFF">


<table border="0" width="100%" cellspacing="0" cellpadding="0">
<tr>
<td width="1%" valign="top" background="http://www.bildhost.de/bilder/designs/clock/sidebkg.jpg"><img border="0" src="http://img85.imageshack.us/img85/2787/topleft1wp4.jpg" width="165" height="62"><br>
<img border="0" src="http://img82.imageshack.us/img82/3403/topleft2xs2.jpg" width="165" height="68">
<p style="margin-left: 10"><br>
<font size="2"><b><font color="#000000">%navigation%</font></b></font>
<font size="1"><br>
</font><br>
<font size="1"> <br>
</font><br>
<font size="1"> <br>
</font><br>
<font size="1"> <br>
</font><br>
<font size="1"> <br>
</font></td>
<td width="99%" valign="top">
<table border="0" width="100%" cellspacing="0" cellpadding="0" background="http://www.bildhost.de/bilder/designs/clock/top.jpg">
<tr>
<td width="1%"><img border="0" src="http://www.bildhost.de/bilder/designs/clock/top.jpg" width="8" height="62"></td>
<td width="94%">
<p align="left"><font face="Arial Black" color="#E0B058" size="6"> </font><font color="#E0B058" size="5" face="Arial Black">%titel%</font></td>
<td width="5%" valign="top">
</td>
</tr>
</table>
<table border="0" width="100%" cellspacing="0" cellpadding="0" background="http://www.bildhost.de/bilder/designs/clock/goldspacer.jpg">
<tr>
<td width="100%"><img border="0" src="http://www.bildhost.de/bilder/designs/clock/goldspacer.jpg" width="6" height="38"></td>
</tr>
</table>
<table border="0" width="100%" cellspacing="0" cellpadding="0">
<tr>
<td width="99%" valign="top"><font size="1"> </font><br>
<font face="Arial" size="2" color="#E0B058"><b></b></font>
<p><font size="2" color="#000000"><br>
<br>
</font> </td>
<td width="1%" valign="top">
<p align="right"><img border="0" src="http://img211.imageshack.us/img211/9752/stopwatch1wx8.jpg" width="146" height="211"></td>
</tr>
</table>
</td>
</tr>
</table>
<p align="center"><font size="1"> </font></p>

<p align="center"><font face="Arial" size="1">Powered by Bollywood-Liebe<br>
->
<a target="_blank" href="../../*********.cgi?userid=%userid%" style="text-decoration: none">
<font color="#000000">*********</font></a><br>
<br>
*Werbelink</font></p></body>

</html>
 
Zuletzt bearbeitet:
Wenn du das Layout im Browserfenster horizontal zentrieren willst, benötigt es eine fixe Breite.
 
Das Stylesheet ist übrigens vollkommener Mist. Mein Vorschlag:
Code:
a.navi:link,
a.navi:visited,
a.navi:active {
	color: #000;
	text-decoration: none;
}
a.navi:hover {
	color: #000;
	text-decoration: underline;
}
 
Probier mal Folgendes:

Code:
body {
margin: 0;
padding: 0;
text-align: center;
background: #ffffff;
}

a.navi:link,
a.navi:visited,
a.navi:active {
        color: #000;
        text-decoration: none;
}
a.navi:hover {
        color: #000;
        text-decoration: underline;
}

Code:
<body>

<table border="0" style="width:75%; margin:0 auto;" cellspacing="0" cellpadding="0">.
.
.
.
</table>

</body>
 
Status
Nicht offen für weitere Antworten.
Zurück